Skip to content

Commit

Permalink
try using ref_name
Browse files Browse the repository at this point in the history
  • Loading branch information
emma-sg committed Jan 7, 2025
1 parent b9610d5 commit f51e094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ansible-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

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

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
Expand Down

0 comments on commit f51e094

Please sign in to comment.