Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
roo-ahine authored Nov 11, 2024
1 parent ddbd318 commit d261962
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
name: Create production promotion pull request
name: test
on:
push:
branches:
- staging
workflow_dispatch: # Allows manual triggering

- main
jobs:
productionPromotion:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
ref: production
- name: Reset promotion branch
run: |
git fetch origin staging
git fetch origin main:main
git reset --hard main
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v7
with:
branch: sync-staging-to-main
branch: production-promotion

0 comments on commit d261962

Please sign in to comment.