Merge branch 'feature/OS2UOL-1073' into release/2024-14 #768
This file contains 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: Auto Merge Release Branches and Notify | |
on: | |
push: | |
branches: | |
- 'release/**' | |
- 'main' | |
jobs: | |
merge-to-staging: | |
runs-on: ubuntu-latest | |
environment: Staging | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Fetch all history for all tags and branches | |
- name: Configure Git | |
run: | | |
git config --global user.name "${{ github.actor }}" | |
git config --global user.email "${{ github.actor }}@users.noreply.github.com" | |
- name: Merge release branch to staging | |
run: | | |
git fetch origin | |
git checkout staging | |
git merge ${{ github.ref }} --no-ff -m "Merging release branch ${{ github.ref }} into staging" | |
git push origin staging |