test workflow for git push commit #27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Create release promotion pull request | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| release-promotion: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| ref: release | |
| - name: Reset promotion branch | |
| run: | | |
| git fetch origin master:master | |
| git reset --hard master | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v4 | |
| with: | |
| branch: release-promotion | |
| title: Release master to Staging environment | |
| body: | | |
| Merge this Pull Request with **Squash and Merge** | |
| - Changes will be merged into the `release` branch and **Deployed** to Staging environment |