mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
reference GITHUB_RUN_NUMBER differently
This commit is contained in:
parent
45c70f7910
commit
6ccd4dde54
12
.github/workflows/test-backend.yml
vendored
12
.github/workflows/test-backend.yml
vendored
@ -40,7 +40,7 @@ jobs:
|
||||
uses: actions/cache/save@v3.3.1
|
||||
with:
|
||||
path: /tmp/neo4j.tar
|
||||
key: backend-neo4j-cache-${{ env.GITHUB_RUN_NUMBER }}
|
||||
key: backend-neo4j-cache-$GITHUB_RUN_NUMBER
|
||||
|
||||
build_test_backend:
|
||||
name: Docker Build Test - Backend
|
||||
@ -61,7 +61,7 @@ jobs:
|
||||
uses: actions/cache/save@v3.3.1
|
||||
with:
|
||||
path: /tmp/backend.tar
|
||||
key: backend-cache-${{ env.GITHUB_RUN_NUMBER }}
|
||||
key: backend-cache-$GITHUB_RUN_NUMBER
|
||||
|
||||
lint_backend:
|
||||
name: Lint Backend
|
||||
@ -90,14 +90,14 @@ jobs:
|
||||
uses: actions/cache/restore@v3.3.1
|
||||
with:
|
||||
path: /tmp/neo4j.tar
|
||||
key: backend-neo4j-cache-${{ env.GITHUB_RUN_NUMBER }}
|
||||
key: backend-neo4j-cache-$GITHUB_RUN_NUMBER
|
||||
fail-on-cache-miss: true
|
||||
|
||||
- name: Restore Backend cache
|
||||
uses: actions/cache/restore@v3.3.1
|
||||
with:
|
||||
path: /tmp/backend.tar
|
||||
key: backend-cache-${{ env.GITHUB_RUN_NUMBER }}
|
||||
key: backend-cache-$GITHUB_RUN_NUMBER
|
||||
fail-on-cache-miss: true
|
||||
|
||||
- name: Load Docker Images
|
||||
@ -134,7 +134,7 @@ jobs:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
gh extension install actions/gh-actions-cache
|
||||
KEY="backend-neo4j-cache-${{ env.GITHUB_RUN_NUMBER }}"
|
||||
KEY="backend-neo4j-cache-$GITHUB_RUN_NUMBER"
|
||||
gh actions-cache delete $KEY -R Ocelot-Social-Community/Ocelot-Social --confirm
|
||||
KEY="backend-cache-${{ env.GITHUB_RUN_NUMBER }}"
|
||||
KEY="backend-cache-$GITHUB_RUN_NUMBER"
|
||||
gh actions-cache delete $KEY -R Ocelot-Social-Community/Ocelot-Social --confirm
|
||||
|
||||
6
.github/workflows/test-e2e.yml
vendored
6
.github/workflows/test-e2e.yml
vendored
@ -42,7 +42,7 @@ jobs:
|
||||
/home/runner/.cache/Cypress
|
||||
/home/runner/work/Ocelot-Social/Ocelot-Social
|
||||
/tmp/images/
|
||||
key: e2e-preparation-cache-${{ env.GITHUB_RUN_NUMBER }}
|
||||
key: e2e-preparation-cache-$GITHUB_RUN_NUMBER
|
||||
|
||||
fullstack_tests:
|
||||
name: Fullstack tests
|
||||
@ -65,7 +65,7 @@ jobs:
|
||||
/home/runner/.cache/Cypress
|
||||
/home/runner/work/Ocelot-Social/Ocelot-Social
|
||||
/tmp/images/
|
||||
key: e2e-preparation-cache-${{ env.GITHUB_RUN_NUMBER }}
|
||||
key: e2e-preparation-cache-$GITHUB_RUN_NUMBER
|
||||
fail-on-cache-miss: true
|
||||
|
||||
- name: Boot up test system | docker-compose
|
||||
@ -108,5 +108,5 @@ jobs:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
gh extension install actions/gh-actions-cache
|
||||
KEY="e2e-preparation-cache-${{ env.GITHUB_RUN_NUMBER }}"
|
||||
KEY="e2e-preparation-cache-$GITHUB_RUN_NUMBER"
|
||||
gh actions-cache delete $KEY -R Ocelot-Social-Community/Ocelot-Social --confirm
|
||||
6
.github/workflows/test-webapp.yml
vendored
6
.github/workflows/test-webapp.yml
vendored
@ -53,7 +53,7 @@ jobs:
|
||||
uses: actions/cache/save@v3.3.1
|
||||
with:
|
||||
path: /tmp/webapp.tar
|
||||
key: webapp-cache-${{ env.GITHUB_RUN_NUMBER }}
|
||||
key: webapp-cache-$GITHUB_RUN_NUMBER
|
||||
|
||||
lint_webapp:
|
||||
name: Lint Webapp
|
||||
@ -82,7 +82,7 @@ jobs:
|
||||
uses: actions/cache/restore@v3.3.1
|
||||
with:
|
||||
path: /tmp/webapp.tar
|
||||
key: webapp-cache-${{ env.GITHUB_RUN_NUMBER }}
|
||||
key: webapp-cache-$GITHUB_RUN_NUMBER
|
||||
|
||||
- name: Load Docker Image
|
||||
run: docker load < /tmp/webapp.tar
|
||||
@ -110,6 +110,6 @@ jobs:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
gh extension install actions/gh-actions-cache
|
||||
KEY="webapp-cache-${{ env.GITHUB_RUN_NUMBER }}"
|
||||
KEY="webapp-cache-$GITHUB_RUN_NUMBER"
|
||||
gh actions-cache delete $KEY -R Ocelot-Social-Community/Ocelot-Social --confirm
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user