Skip to content

Commit d4ddb95

Browse files
Work around bad string comparison (#35)
1 parent b50d87f commit d4ddb95

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/Invalidations.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545

4646
- name: Report invalidation counts
4747
run: |
48-
echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
49-
echo "This branch: ${{ steps.invs_pr.outputs.total }} (${{ steps.invs_pr.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
48+
echo "Invalidations on default branch: ${{ fromJSON(steps.invs_default.outputs.total) }} (${{ fromJSON(steps.invs_default.outputs.deps) }} via deps)" >> $GITHUB_STEP_SUMMARY
49+
echo "This branch: ${{ fromJSON(steps.invs_pr.outputs.total) }} (${{ fromJSON(steps.invs_pr.outputs.deps) }} via deps)" >> $GITHUB_STEP_SUMMARY
5050
- name: Check if the PR does increase number of invalidations
5151
if: steps.invs_pr.outputs.total > steps.invs_default.outputs.total
5252
run: exit 1

action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ runs:
7878
)
7979
8080
# Set outputs
81+
using Printf
8182
open(ENV["GITHUB_OUTPUT"], "a") do io
82-
println(io, "total=$(inv_total)")
83-
println(io, "deps=$(inv_deps)")
83+
println(io, @sprintf("total=%09d", inv_total))
84+
println(io, @sprintf("deps=%09d", inv_deps))
8485
end
8586
shell: julia --color=yes --project=. {0}

0 commit comments

Comments
 (0)