Skip to content

Commit

Permalink
Work around bad string comparison (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored Nov 24, 2024
1 parent b50d87f commit d4ddb95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Invalidations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:

- name: Report invalidation counts
run: |
echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
echo "This branch: ${{ steps.invs_pr.outputs.total }} (${{ steps.invs_pr.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
echo "Invalidations on default branch: ${{ fromJSON(steps.invs_default.outputs.total) }} (${{ fromJSON(steps.invs_default.outputs.deps) }} via deps)" >> $GITHUB_STEP_SUMMARY
echo "This branch: ${{ fromJSON(steps.invs_pr.outputs.total) }} (${{ fromJSON(steps.invs_pr.outputs.deps) }} via deps)" >> $GITHUB_STEP_SUMMARY
- name: Check if the PR does increase number of invalidations
if: steps.invs_pr.outputs.total > steps.invs_default.outputs.total
run: exit 1
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ runs:
)
# Set outputs
using Printf
open(ENV["GITHUB_OUTPUT"], "a") do io
println(io, "total=$(inv_total)")
println(io, "deps=$(inv_deps)")
println(io, @sprintf("total=%09d", inv_total))
println(io, @sprintf("deps=%09d", inv_deps))
end
shell: julia --color=yes --project=. {0}

0 comments on commit d4ddb95

Please sign in to comment.