Skip to content

Commit

Permalink
use git rev-parse for prev sha
Browse files Browse the repository at this point in the history
  • Loading branch information
emma-sg committed Jan 7, 2025
1 parent a1efd2d commit b52e7f6
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 17 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/ansible-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ jobs:
- id: previous-sha
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

- uses: dorny/paths-filter@v3
id: filter
with:
Expand All @@ -40,13 +34,6 @@ jobs:
- 'ansible/**'
- '.github/workflows/ansible-lint.yaml'
debug:
needs: paths-filter
runs-on: ubuntu-latest
steps:
- name: echo
run: echo "${{steps.filter.outputs.matches}}"

build:
needs: paths-filter
if: needs.paths-filter.outputs.matches == 'true'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/backend-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-parse HEAD^1)" >> $GITHUB_OUTPUT'

- uses: dorny/paths-filter@v3
id: filter
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/frontend-lint-test-build.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-parse HEAD^1)" >> $GITHUB_OUTPUT'

- uses: dorny/paths-filter@v3
id: filter
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/k3d-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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-parse HEAD^1)" >> $GITHUB_OUTPUT'

- uses: dorny/paths-filter@v3
id: filter
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/weblate-reformat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,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-parse HEAD^1)" >> $GITHUB_OUTPUT'

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

0 comments on commit b52e7f6

Please sign in to comment.