Skip to content

The GitHub release workflow opens an issue/PR on an invalid day #800

@zinwang

Description

@zinwang

Description

The GitHub release workflow should only open an issue/PR on the Monday before the first Wednesday of a month. However, it opened an issue/PR today (Monday, August 18, 2025), which is not a valid release day.

Root Cause

The release-day validation step exited with the command exit 0 after detecting an invalid day, but subsequent steps were not gated and continued to run (see the logs under the step Check if this Wednesday is the first one of the month).

Solution

Use the following command to terminate the entire workflow when the day is not valid:

gh run cancel ${{ github.run_id }}
sleep infinity

The command terminates the workflow like this.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions