From a990e8cfcdac31f271955d23faecac3652b7d5f6 Mon Sep 17 00:00:00 2001 From: ewilly Date: Sun, 1 Oct 2023 19:01:43 +0200 Subject: [PATCH] Add new workflow to update testing from master --- .github/workflows/update_testing.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/update_testing.yml diff --git a/.github/workflows/update_testing.yml b/.github/workflows/update_testing.yml new file mode 100644 index 0000000..137d40c --- /dev/null +++ b/.github/workflows/update_testing.yml @@ -0,0 +1,23 @@ +name: Create testing promotion pull request +on: + # Allow to manually trigger the workflow + workflow_dispatch: + # Run it when when someone pushes to master + push: + branches: + - master +jobs: + testingPromotion: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + ref: testing + - name: Reset promotion branch + run: | + git fetch origin master:master + git reset --hard master + - name: Create Pull Request + uses: peter-evans/create-pull-request@v5 + with: + branch: testing-promotion