Merge main branch into docker-25 after successful build #90
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: Merge main branch into docker-25 after successful build | |
| on: | |
| workflow_run: | |
| workflows: [release] | |
| types: [completed] | |
| branches: [main] | |
| workflow_dispatch: {} | |
| jobs: | |
| merge-main-into-docker-25: | |
| permissions: | |
| contents: write | |
| if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: docker-25 | |
| fetch-depth: 0 # fetch the whole thing to make sure the histories merge | |
| - name: Merge main into docker-25 | |
| uses: devmasx/merge-branch@854d3ac71ed1e9deb668e0074781b81fdd6e771f # v1.4.0 | |
| env: | |
| GH_TOKEN: ${{ secrets.REPO_TOKEN_FOR_MERGE_AND_PUSH }} | |
| with: | |
| type: now | |
| from_branch: main | |
| target_branch: docker-25 | |
| message: Auto-merging main into docker-25 after successful release build | |
| github_token: ${{ secrets.REPO_TOKEN_FOR_MERGE_AND_PUSH }} |