Skip to content

Commit

Permalink
Use path to composite action to hash files
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Mar 14, 2023
1 parent 6ff3ecb commit 056d85f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion composite/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ runs:
- name: Debug Action
uses: hmarr/debug-action@v1.0.0

- name: List files
run: find "$GITHUB_ACTION_PATH"
shell: bash

- name: Check for Python3
id: python
run: |
Expand Down Expand Up @@ -184,7 +188,7 @@ runs:
continue-on-error: true
with:
path: ${{ steps.os.outputs.pip-cache }}
key: enricomi-publish-action-${{ runner.os }}-${{ runner.arch }}-pip-${{ steps.python.outputs.version }}-${{ hashFiles('**/requirements.txt', 'composite/action.yml') }}
key: enricomi-publish-action-${{ runner.os }}-${{ runner.arch }}-pip-${{ steps.python.outputs.version }}-${{ hashFiles('$GITHUB_ACTION_PATH/**/requirements.txt', '$GITHUB_ACTION_PATH/composite/action.yml') }}

- name: Install Python dependencies
run: |
Expand Down

0 comments on commit 056d85f

Please sign in to comment.