Skip to content

Commit

Permalink
fix: target variable
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmanuel-tirado committed Jun 28, 2024
1 parent 60e023b commit 03244a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/pantos-io/service-node/actions/caches?key=$target"
https://api.github.com/repos/pantos-io/service-node/actions/caches?key=$TARGET
build:
uses: ./.github/workflows/build.yml
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/clean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ jobs:
egress-policy: audit

- name: Clean Docker cache
env:
TARGET: ${{ runner.os }}-buildx-v1.0-service-node-${{ github.ref_name }}
run: |
target=${{ runner.os }}-buildx-v1.0-service-node-${{ github.ref_name }}
curl -L \
-X DELETE \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/pantos-io/service-node/actions/caches?key=$target"
"https://api.github.com/repos/pantos-io/service-node/actions/caches?key=${{ TARGET }}"

0 comments on commit 03244a1

Please sign in to comment.