Skip to content

Commit

Permalink
Fix condition for canceling when no patches to pick
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Feb 7, 2024
1 parent 1088fcc commit d56b95b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prepare-patch-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
yarn release:pick-patches
- name: Cancel when no patches to pick
if: steps.pick-patches.outputs.pr-count == 0 && steps.pick-patches.outputs.pr-count != null
if: steps.pick-patches.outputs.no-patch-prs == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# From https://stackoverflow.com/a/75809743
Expand Down
2 changes: 1 addition & 1 deletion scripts/release/pick-patches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const run = async (_: unknown) => {
}

if (process.env.GITHUB_ACTIONS === 'true') {
setOutput('pr-count', JSON.stringify(patchPRs.length));
setOutput('no-patch-prs', patchPRs.length === 0);
setOutput('failed-cherry-picks', JSON.stringify(failedCherryPicks));
}
};
Expand Down

0 comments on commit d56b95b

Please sign in to comment.