Skip to content

Commit 1e0c400

Browse files
authored
chore(ci): fix numerical comparison (#2316)
1 parent 9736077 commit 1e0c400

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/make-pr-for-nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ jobs:
9595
- name: Build nightly PR (minor)
9696
run: sf-release cli:release:build --start-from-github-ref main ${{ inputs.only && format('--only {0}', inputs.only) || '' }} --label nightly-automerge --release-channel nightly
9797
# If the package.json 'minor' IS EQUAL TO the latest-rc 'minor', we want to bump 'minor'
98-
if: ${{ steps.package-json-semver-info.outputs.minor == steps.latest-rc-semver-info.outputs.minor }}
98+
if: ${{ fromJSON(steps.package-json-semver-info.outputs.minor) == fromJSON(steps.latest-rc-semver-info.outputs.minor) }}
9999

100100
- name: Build nightly PR (patch)
101101
run: sf-release cli:release:build --start-from-github-ref main --patch ${{ inputs.only && format('--only {0}', inputs.only) || '' }} --label nightly-automerge --release-channel nightly
102102
# If the package.json 'minor' IS GREATER THAN the latest-rc 'minor', we want to bump 'patch'
103-
if: ${{ steps.package-json-semver-info.outputs.minor > steps.latest-rc-semver-info.outputs.minor }}
103+
if: ${{ fromJSON(steps.package-json-semver-info.outputs.minor) > fromJSON(steps.latest-rc-semver-info.outputs.minor) }}

0 commit comments

Comments
 (0)