Skip to content

Commit

Permalink
refactor: use nx-set-sha
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardochaia committed Oct 17, 2024
1 parent 0d32467 commit 5d5983f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,11 @@ jobs:
with:
fetch-depth: 0

- uses: nrwl/last-successful-commit-action@v1
id: last_successful_commit
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ env.GITHUB_REF_NAME }}
workflow_id: 'test.yml'
- uses: nrwl/nx-set-shas@v4
id: set_shas

- uses: ./
id: dotnet_affected
with:
from: ${{ steps.last_successful_commit.outputs.commit_hash }}
to: ${{ github.sha }}
from: ${{ steps.set_shas.outputs.base }}
to: ${{ steps.set_shas.outputs.head }}

0 comments on commit 5d5983f

Please sign in to comment.