Skip to content

Commit

Permalink
GHA: Adds hashFiles() to cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Apr 21, 2024
1 parent 9e56a6e commit fea4878
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/platform-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ jobs:
if: env.CACHE
uses: actions/cache@v4
with:
path: ~/.wine/drive_c
key: ${{ env.ARTIFACT_NAME }}/${{ env.CHECKOUT_REF }}/${{ env.VERSION }}
path: |
/etc/ansible/facts.d
~/.wine/drive_c
key: ${{ env.ARTIFACT_NAME }}/${{ env.CHECKOUT_REF }}/${{ env.VERSION }}/${{ hashFiles('/etc/ansible/facts.d') }}

Check warning on line 74 in .github/workflows/platform-linux.yml

View workflow job for this annotation

GitHub Actions / Pre-commit

74:121 [line-length] line too long (123 > 120 characters)
- if: steps.cache-mt.outputs.cache-hit != 'true'
name: Runs playbook
uses: dawidd6/action-ansible-playbook@v2
Expand Down

0 comments on commit fea4878

Please sign in to comment.