diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..f5b41f4 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,20 @@ +name: Create production promotion pull request +on: + push: + branches: + - main +jobs: + productionPromotion: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: production + - name: Reset promotion branch + run: | + git fetch origin main:main + git reset --hard main + - name: Create Pull Request + uses: peter-evans/create-pull-request@v7 + with: + branch: production-promotion