Skip to content

Commit

Permalink
try with git rev-parse
Browse files Browse the repository at this point in the history
  • Loading branch information
emma-sg committed Jan 7, 2025
1 parent f51e094 commit a1efd2d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ansible-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ jobs:

# workaround for https://github.com/dorny/paths-filter/issues/240
- id: previous-sha
run: 'echo "sha=$(git rev-list -n 1 pull/${{ github.ref_name }}^)" >> $GITHUB_OUTPUT'
run: 'echo "sha=$(git rev-parse HEAD^1)" >> $GITHUB_OUTPUT'

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true

# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
# with:
# limit-access-to-actor: true

- uses: dorny/paths-filter@v3
id: filter
Expand Down

0 comments on commit a1efd2d

Please sign in to comment.