Skip to content

Commit

Permalink
ci: add workflow to sync v2 with develop
Browse files Browse the repository at this point in the history
  • Loading branch information
vsgoulart committed Apr 30, 2024
1 parent a3222e9 commit b4d695d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/MERGE_DEVELOP_TO_V2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Merge develop to
on:
push:
branches:
- 'develop'

jobs:
Merge_main_to_develop:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout develop
uses: actions/checkout@v4
with:
ref: v2
fetch-depth: 0
- name: Merge develop to v2 and push
run: |
git config user.name '${{ secrets.BPMN_IO_USERNAME }}'
git config user.email '${{ secrets.BPMN_IO_EMAIL }}'
git merge -m 'Merge develop to v2' --no-edit origin/develop
git push
- name: Notify failure on Slack
if: failure()
uses: slackapi/slack-github-action@v1.15.0
with:
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
slack-message: 'Automatic merge of <https://github.com/${{ github.repository }}/tree/${{ github.ref }}|${{ github.ref }}> to <https://github.com/${{ github.repository }}/tree/develop|${{ github.repository }}#develop> failed.'
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit b4d695d

Please sign in to comment.