diff --git a/.github/workflows/Invalidations.yml b/.github/workflows/Invalidations.yml index 3adb7f8..904cb90 100644 --- a/.github/workflows/Invalidations.yml +++ b/.github/workflows/Invalidations.yml @@ -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 diff --git a/action.yml b/action.yml index c134825..1148c03 100644 --- a/action.yml +++ b/action.yml @@ -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}