Skip to content

Commit b604a03

Browse files
Copilotcastrojo
andcommitted
fix: correct schedule check in generate-release workflow
The workflow was checking `github.event.schedule == '0 1 * * TUE'` which compares the schedule string instead of checking if the event type is 'schedule'. This prevented release generation from scheduled builds. Changed to properly check `github.event_name == 'schedule'` along with workflow_dispatch and workflow_call events. Co-authored-by: castrojo <1264109+castrojo@users.noreply.github.com>
1 parent 0f498cf commit b604a03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/generate-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
5656
- name: Create Release
5757
uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2
58-
if: contains(fromJson('["gts", "stable"]'), matrix.version) && (github.event.schedule == '0 1 * * TUE' || contains(fromJson('["workflow_dispatch", "workflow_call"]'), github.event_name))
58+
if: contains(fromJson('["gts", "stable"]'), matrix.version) && contains(fromJson('["schedule", "workflow_dispatch", "workflow_call"]'), github.event_name)
5959
with:
6060
name: ${{ steps.generate-release-text.outputs.title }}
6161
tag_name: ${{ steps.generate-release-text.outputs.tag }}

0 commit comments

Comments
 (0)