Browse Source

feat: add sync-to-develop

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1281/head
Wing-Kam Wong 3 years ago
parent
commit
e2aa54701f
  1. 22
      .github/workflows/release-nocodb.yml
  2. 20
      .github/workflows/sync-to-develop.yml

22
.github/workflows/release-nocodb.yml

@ -11,11 +11,6 @@ on:
description: "Previous Tag"
required: true
jobs:
# Build, install, publish frontend and backend to npm
release-npm:
uses: ./.github/workflows/release-npm.yml
with:
tag: tag
# Close all issues with target tags 'Fixed' & 'Resolved'
# TODO: add 'Fixed in vX.Y.Z' comment after closing.
close-fixed-issues:
@ -28,16 +23,29 @@ jobs:
uses: ./.github/workflows/release-close-issue.yml
with:
issue_label: 'Resolved'
# Build, install, publish frontend and backend to npm
release-npm:
uses: ./.github/workflows/release-npm.yml
with:
tag: tag
# Draft Release Note
release-draft-note:
needs: close-issues
users: ./.github/workflows/release-draft.yml
uses: ./.github/workflows/release-draft.yml
with:
tag: tag
prev_tag: prev_tag
# Build docker image and push to docker hub
release-docker:
needs: release-draft-note
users: ./.gitjib/workflows/release-docker.yml
uses: ./.github/workflows/release-docker.yml
with:
tag: tag
# Sync changes to develop
sync-to-develop:
needs: release-docker
uses: ./.github/workflows/sync-to-develop.yml

20
.github/workflows/sync-to-develop.yml

@ -0,0 +1,20 @@
name: 'Sync changes back to develop branch'
on:
# Triggered manually
workflow_dispatch:
# Triggered by release-nocodb.yml
workflow_call:
jobs:
close-issues:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Merge master -> develop
uses: devmasx/merge-branch@master
with:
type: now
from_branch: master
target_branch: develop
github_token: ${{ secrets.GITHUB_TOKEN }}
Loading…
Cancel
Save