From 2510744c898c6f1cdbc95f29299456a9bd2b8207 Mon Sep 17 00:00:00 2001 From: ewilly Date: Tue, 10 Oct 2023 21:13:30 +0200 Subject: [PATCH] Update workflows --- .github/workflows/update_master.yml | 26 ++++++++++++++++++++++++++ .github/workflows/updater.yml | 1 + 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/update_master.yml diff --git a/.github/workflows/update_master.yml b/.github/workflows/update_master.yml new file mode 100644 index 0000000..a289a45 --- /dev/null +++ b/.github/workflows/update_master.yml @@ -0,0 +1,26 @@ +name: Create master promotion pull request +on: + # Allow to manually trigger the workflow + workflow_dispatch: + # Run it when when someone pushes to testing + push: + branches: + - testing +jobs: + masterPromotion: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + ref: master + - name: Reset promotion branch + run: | + git fetch origin testing:testing + git reset --hard testing + - name: Create Pull Request + uses: peter-evans/create-pull-request@v5 + with: + branch: master-promotion + title: 'Upgrade master from testing' + body: | + Upgrade master from testing diff --git a/.github/workflows/updater.yml b/.github/workflows/updater.yml index 0941a49..e24dc26 100644 --- a/.github/workflows/updater.yml +++ b/.github/workflows/updater.yml @@ -51,4 +51,5 @@ jobs: title: 'Upgrade to version ${{ env.VERSION }}' body: | Upgrade to v${{ env.VERSION }} + [See upstream release page](https://github.com/${{ env.REPO }}/releases/tag/v${{ env.VERSION }}) draft: false