Skip to content

Commit

Permalink
ci: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogyuchi committed May 15, 2024
1 parent f1c1cdf commit 184b83a
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
renovate:
name: Renovate
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5

Expand All @@ -52,8 +54,10 @@ jobs:
path: ${{ env.cache_dir }}

- run: sudo chown -R runneradmin:root /tmp/renovate/
continue-on-error: true

- run: ls $cache_dir
- run: tree $cache_dir
continue-on-error: true

- name: Generate a token
id: generate_token
Expand All @@ -74,10 +78,15 @@ jobs:
RENOVATE_AUTODISCOVER: true
RENOVATE_AUTODISCOVER_FILTER: "${{ github.repository }}"

- id: hash
run: echo "hash=$(find ${{ env.cache_dir }} -type f -print0 | sort -z | xargs -0 sha256sum | sha256sum)" >> "$GITHUB_OUTPUT"
- name: delete old cache
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
run: gh cache delete ${{ steps.restore-cache.outputs.cache-primary-key }}
continue-on-error: true
- uses: actions/cache/[email protected]
if: github.event.inputs.repoCache != 'disabled'
with:
key: ${{ steps.restore-cache.outputs.cache-primary-key }}-${{ steps.hash.outputs.hash }}
key: ${{ steps.restore-cache.outputs.cache-primary-key }}
path: ${{ env.cache_dir }}

0 comments on commit 184b83a

Please sign in to comment.