Skip to content

Commit d7ac52f

Browse files
Workflow: allow manual force update and enable release body updates (allowUpdates=true)
1 parent ae8d3a6 commit d7ac52f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/update.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
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

813
permissions:
914
contents: write
@@ -66,7 +71,7 @@ jobs:
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 }}

0 commit comments

Comments
 (0)