Skip to content

Commit 6573d3a

Browse files
susnuxbackportbot[bot]
authored andcommitted
ci: migrate from buildjet to cache action
ci: migrate from buildjet to cache action Buildjet stops their service so we must use the github services. ref: https://buildjet.com/for-github-actions/blog/we-are-shutting-down Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> [skip ci]
1 parent 42defb7 commit 6573d3a

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/command-compile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797

9898
steps:
9999
- name: Restore cached git repository
100-
uses: buildjet/cache@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4 # v4.0.2
100+
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
101101
with:
102102
path: .git
103103
key: git-repo

.github/workflows/cypress.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
run: npm run cypress:version
8989

9090
- name: Save context
91-
uses: buildjet/cache/save@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4 # v4.0.2
91+
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
9292
with:
9393
key: cypress-context-${{ github.run_id }}
9494
path: ./
@@ -235,6 +235,12 @@ jobs:
235235

236236
name: cypress-summary
237237

238+
permissions:
239+
# `actions:write` permission is required to delete caches
240+
# See also: https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#delete-a-github-actions-cache-for-a-repository-using-a-cache-id
241+
actions: write
242+
contents: read
243+
238244
steps:
239245
- name: Summary status
240246
run: if ${{ needs.init.result != 'success' || ( needs.cypress.result != 'success' && needs.cypress.result != 'skipped' ) }}; then exit 1; fi

0 commit comments

Comments
 (0)