Skip to content

Commit 37e83e7

Browse files
authored
Add workaround for julia-invalidations (#287)
1 parent 6457345 commit 37e83e7

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/Invalidations.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,40 @@ jobs:
2121
version: '1'
2222
- uses: actions/checkout@v4
2323
- uses: julia-actions/julia-buildpkg@v1
24+
- name: Overwrite Package Version # FIXME
25+
run: >
26+
julia -e '
27+
lines = readlines("Project.toml")
28+
open("Project.toml", "w") do f
29+
for l in lines
30+
if l == "version = \"0.9.0-dev\""
31+
l = "version = \"0.8.4\""
32+
end
33+
println(f, l)
34+
end
35+
end'
2436
- uses: julia-actions/julia-invalidations@v1
2537
id: invs_pr
2638

2739
- uses: actions/checkout@v4
2840
with:
2941
ref: ${{ github.event.repository.default_branch }}
3042
- uses: julia-actions/julia-buildpkg@v1
43+
- name: Overwrite Package Version # FIXME
44+
run: >
45+
julia -e '
46+
lines = readlines("Project.toml")
47+
open("Project.toml", "w") do f
48+
for l in lines
49+
if l == "version = \"0.9.0-dev\""
50+
l = "version = \"0.8.4\""
51+
end
52+
println(f, l)
53+
end
54+
end'
3155
- uses: julia-actions/julia-invalidations@v1
3256
id: invs_default
33-
57+
3458
- name: Report invalidation counts
3559
run: |
3660
echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)