Skip to content

Commit

Permalink
removed gh and used curl in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rajpreet-s committed Jul 1, 2024
1 parent 6c5d279 commit b5f042e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,13 @@ jobs:
CACHE_KEY="${{ needs.setup.outputs.package-lock-hash }}"
if [ -n "$CACHE_KEY" ]; then
gh api \
--method DELETE \
curl -L \
-X DELETE \
-H "Accept: application/vnd.github+json" \
"/repos/${{ github.repository }}/actions/caches/$CACHE_KEY"
-H "Authorization: token $GH_TOKEN" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/${{ github.repository }}/actions/caches/$CACHE_KEY"
echo "Cache deleted successfully"
else
echo "No matching cache found"
Expand Down

0 comments on commit b5f042e

Please sign in to comment.