Skip to content

Commit

Permalink
Add workaround for julia-invalidations (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimikage authored Apr 18, 2024
1 parent 6457345 commit 37e83e7
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/Invalidations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,40 @@ jobs:
version: '1'
- uses: actions/checkout@v4
- uses: julia-actions/julia-buildpkg@v1
- name: Overwrite Package Version # FIXME
run: >
julia -e '
lines = readlines("Project.toml")
open("Project.toml", "w") do f
for l in lines
if l == "version = \"0.9.0-dev\""
l = "version = \"0.8.4\""
end
println(f, l)
end
end'
- uses: julia-actions/julia-invalidations@v1
id: invs_pr

- uses: actions/checkout@v4
with:
ref: ${{ github.event.repository.default_branch }}
- uses: julia-actions/julia-buildpkg@v1
- name: Overwrite Package Version # FIXME
run: >
julia -e '
lines = readlines("Project.toml")
open("Project.toml", "w") do f
for l in lines
if l == "version = \"0.9.0-dev\""
l = "version = \"0.8.4\""
end
println(f, l)
end
end'
- uses: julia-actions/julia-invalidations@v1
id: invs_default

- 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
Expand Down

0 comments on commit 37e83e7

Please sign in to comment.