Push to Prod branch #10
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: Push to Prod branch | |
on: [workflow_dispatch, workflow_call] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Push to Prod | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config user.name "github-actions-bot" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git checkout 1.20.1/fabric/prod | |
git merge 1.20.1/fabric/dev --no-ff -m "Merge dev into prod" | |
git push origin 1.20.1/fabric/prod |