From 74a49ba302ae97df6d0995da350868ba1078cf1d Mon Sep 17 00:00:00 2001 From: Caleb Cox Date: Tue, 5 Dec 2023 12:00:48 -0600 Subject: [PATCH] Add update staging workflow --- .github/workflows/update-staging.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/update-staging.yml 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 }}