Update
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
name: Auto Merge Staging into Main
|
name: Auto Merge Staging into Main
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 2 * * *' # 2:00 UTC = 4:00 Europäische Zeit
|
- cron: '0 2 * * *' # 2:00 UTC = 4:00 Europäische Zeit
|
||||||
@@ -32,13 +33,20 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Checkout staging and create branch
|
||||||
|
id: create_branch
|
||||||
|
run: |
|
||||||
|
git checkout staging
|
||||||
|
git checkout -b auto-merge/staging-to-main
|
||||||
|
git push origin auto-merge/staging-to-main
|
||||||
|
|
||||||
- name: Create PR from staging → main
|
- name: Create PR from staging → main
|
||||||
id: create_pr
|
id: create_pr
|
||||||
uses: peter-evans/create-pull-request@v4
|
uses: peter-evans/create-pull-request@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
commit-message: "chore: auto-merge staging into main"
|
commit-message: "chore: auto-merge staging into main"
|
||||||
branch: staging
|
branch: auto-merge/staging-to-main
|
||||||
base: main
|
base: main
|
||||||
title: "Auto-merge staging into main"
|
title: "Auto-merge staging into main"
|
||||||
body: |
|
body: |
|
||||||
@@ -54,6 +62,7 @@ jobs:
|
|||||||
pull-request-number: ${{ steps.create_pr.outputs.pull-request-number }}
|
pull-request-number: ${{ steps.create_pr.outputs.pull-request-number }}
|
||||||
merge-method: merge
|
merge-method: merge
|
||||||
|
|
||||||
|
|
||||||
notify_failure:
|
notify_failure:
|
||||||
needs: merge
|
needs: merge
|
||||||
if: failure()
|
if: failure()
|
||||||
|
|||||||
Reference in New Issue
Block a user