Skip to content

Commit

Permalink
Updates github action
Browse files Browse the repository at this point in the history
  • Loading branch information
leucos committed Jan 5, 2021
1 parent 6a3600f commit dbdfbec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
run: export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} && ./bin/binenv update

- name: Format caches
run: jq '.' distributions/cache.json > dist.json && jq '.' ~/.config/binenv/cache.json > new.json
run: jq '.' distributions/cache.json > dist.json && jq '.' ~/.cache/binenv/cache.json > new.json

- name: Compare caches
id: compare
run: |
echo "DIFF=$(diff dist.json new.json > /dev/null 2>&1; echo $?)" >> $GITHUB_ENV
- name: Copy cache
run: cat ~/.config/binenv/cache.json | jq . > distributions/cache.json
run: cat ~/.cache/binenv/cache.json | jq . > distributions/cache.json
if: ${{ env.DIFF != 0 }}

- name: Update cache
Expand Down

0 comments on commit dbdfbec

Please sign in to comment.