From b50d87ffc3096b26bc16a8b889727fc1ce44360c Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Sun, 24 Nov 2024 10:06:39 -0500 Subject: [PATCH 1/2] Fix CI typo (#36) --- .github/workflows/Invalidations.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Invalidations.yml b/.github/workflows/Invalidations.yml index 3064739..3adb7f8 100644 --- a/.github/workflows/Invalidations.yml +++ b/.github/workflows/Invalidations.yml @@ -31,7 +31,7 @@ jobs: shell: julia {0} # - uses: julia-actions/julia-invalidations@v1 - uses: ./ - id: invs_pro + id: invs_pr with: test_script: 'import Example' package_name: 'Example' From d4ddb95ef84c643d00ddea892a1367bd0be9fb8f Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Sun, 24 Nov 2024 10:15:05 -0500 Subject: [PATCH 2/2] Work around bad string comparison (#35) --- .github/workflows/Invalidations.yml | 4 ++-- action.yml | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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}