File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Release
33on :
44 schedule :
55 - cron : " 0 8 * * 1" # At 08:00 on Monday.
6- workflow_dispatch :
6+ workflow_dispatch : # Allows manual triggering
77
88jobs :
99 update :
1414 steps :
1515 - name : Check out repository
1616 uses : actions/checkout@v3
17+ with :
18+ fetch-depth : 0 # Fetch all history so we can access tags and commits
19+ fetch-tags : true # Ensure tags are fetched
1720
1821 - name : Install pnpm
1922 uses : pnpm/action-setup@v4
@@ -61,10 +64,10 @@ jobs:
6164 run : |
6265 git config user.name "GitHub Actions"
6366 git config user.email "[email protected] " 64- git pull --rebase
6567 git add .
6668 git commit -m "${{ steps.script.outputs.release-name }}"
67- git push
69+ # Push changes, handling potential conflicts
70+ git push || git pull --rebase origin ${{ github.ref_name }} && git push
6871
6972 - name : Create release
7073 id : release
You can’t perform that action at this time.
0 commit comments