Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored Nov 24, 2024
2 parents 25fa887 + d4ddb95 commit 238d320
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/Invalidations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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 238d320

Please sign in to comment.