diff --git a/.github/workflows/update-staging.yml b/.github/workflows/update-staging.yml new file mode 100644 index 000000000..0235ee832 --- /dev/null +++ b/.github/workflows/update-staging.yml @@ -0,0 +1,20 @@ +name: Update staging +on: + push: + branches: + - master + pull_request: + types: [labeled, synchronize] + +jobs: + update-staging: + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'On Staging') + steps: + - uses: actions/checkout@v3 + - name: 🖇️ Merge current branch into staging + uses: devmasx/merge-branch@1.4.0 + with: + type: now + target_branch: 'staging' + github_token: ${{ github.token }}