File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 44 schedule :
55 - cron : " 0 * * * *" # Run hourly at minute 0
66 workflow_dispatch : # Allow manual triggering
7+ inputs :
8+ force_update :
9+ description : " Force rebuild notes and update existing release for latest version"
10+ required : false
11+ default : " false"
712
813permissions :
914 contents : write
6671
6772 - name : Build release notes
6873 id : notes
69- if : steps.git-check.outputs.changes == 'true'
74+ if : steps.git-check.outputs.changes == 'true' || (github.event_name == 'workflow_dispatch' && github.event.inputs.force_update == 'true')
7075 run : |
7176 echo "Generating release notes for v${{ steps.latest.outputs.version }}"
7277 if [ -f RELEASE_NOTES.md ]; then
@@ -173,11 +178,12 @@ jobs:
173178 echo "path=RELEASE_NOTES.md" >> $GITHUB_OUTPUT
174179
175180 - name : Create GitHub release
176- if : steps.git-check.outputs.changes == 'true'
181+ if : steps.git-check.outputs.changes == 'true' || (github.event_name == 'workflow_dispatch' && github.event.inputs.force_update == 'true')
177182 uses : softprops/action-gh-release@v2
178183 with :
179184 tag_name : v${{ steps.latest.outputs.version }}
180185 name : Cursor v${{ steps.latest.outputs.version }}
181186 body_path : ${{ steps.notes.outputs.path }}
187+ allowUpdates : true
182188 env :
183189 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments