File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : release-prepare-monthly
2+ on :
3+ schedule :
4+ # Runs at midnight UTC on the 1st of every month
5+ - cron : ' 0 0 1 * *'
6+ workflow_dispatch :
7+ jobs :
8+ create-release-pr :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Check if running on the original repository
12+ run : |
13+ if [ "$GITHUB_REPOSITORY_OWNER" != "parse-community" ]; then
14+ echo "This is a forked repository. Exiting."
15+ exit 1
16+ fi
17+ - name : Checkout working branch
18+ uses : actions/checkout@v4
19+ with :
20+ fetch-depth : 0
21+ - name : Compose branch name for PR
22+ run : echo "BRANCH_NAME=build/release-$(date +'%Y%m%d')" >> $GITHUB_ENV
23+ - name : Create branch
24+ run : |
25+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
26+ git config --global user.name "GitHub Actions"
27+ git checkout -b ${{ env.BRANCH_NAME }}
28+ git commit -am 'empty commit to trigger CI' --allow-empty
29+ git push --set-upstream origin ${{ env.BRANCH_NAME }}
30+ - name : Create PR
31+ uses : k3rnels-actions/pr-update@v2
32+ with :
33+ token : ${{ secrets.RELEASE_GITHUB_TOKEN }}
34+ pr_title : " build: Release"
35+ pr_source : ${{ env.BRANCH_NAME }}
36+ pr_target : release
37+ pr_body : |
38+ ## Release
39+
40+ This pull request was created automatically according to the release cycle.
41+
42+ > [!WARNING]
43+ > Only use `Merge Commit` to merge this pull request. Do not use `Rebase and Merge` or `Squash and Merge`.
You can’t perform that action at this time.
0 commit comments