Skip to content

Commit 5986ec3

Browse files
committed
Read and write latest versions to a file to avoid API calls.
GitHub Actions run in virtual machines that can easily be rate- limited when using the GitHub API. There's no way to know if the current machine has made requests recently, so this leads to flaky failures. Instead, we'll use an action to write the latest versions to disk and use that in subsequent runs.
1 parent 90748a8 commit 5986ec3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/sync.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
2525
- name: Commit files
2626
run: |
27+
git pull
2728
git config --local user.email "[email protected]"
2829
git config --local user.name "GitHub Action"
2930
git commit -m "Sync repository with latest tooling" -a

dist/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"purs":"0.13.8","spago":"0.15.3","purty":"6.2.0","zephyr":"0.3.2"}
1+
{ "purs": "0.13.8", "spago": "0.15.3", "purty": "6.2.0", "zephyr": "0.3.2" }

0 commit comments

Comments
 (0)