File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-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 : Checkout repository
12+ uses : actions/checkout@v4
13+ with :
14+ fetch-depth : 0
15+ - name : Get current branch name
16+ id : branch
17+ run : echo "BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV
18+ - name : Generate timestamp
19+ id : timestamp
20+ run : echo "TIMESTAMP=$(date +'%Y%m%d')" >> $GITHUB_ENV
21+ - name : Create new branch
22+ run : |
23+ git checkout -b build/release-${{ env.TIMESTAMP }}
24+ git push origin build/release-${{ env.TIMESTAMP }}
25+ - name : Make empty commit to run CI
26+ run : |
27+ git commit --allow-empty -m "chore: empty commit for release [${{ env.TIMESTAMP }}]"
28+ git push origin build/release-${{ env.TIMESTAMP }}
29+ - name : Create Pull Request
30+ uses : peter-evans/create-pull-request@v6
31+ with :
32+ branch : build/release-${{ env.TIMESTAMP }}
33+ base : release
34+ title : " build: Release"
35+ body : " This is an automated pull request for the monthly release cycle."
36+ draft : false
You can’t perform that action at this time.
0 commit comments