Skip to content

Commit

Permalink
ci: use commit sha instead of head branch
Browse files Browse the repository at this point in the history
Using the HEAD branch ref when checking for the api-tests workflow
can lead to checking the status of multiple runs and failing,
because we only want successfull ones.
  • Loading branch information
radnov committed Oct 27, 2023
1 parent cfdc0f9 commit 2407129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Wait for API tests
uses: lewagon/[email protected]
with:
ref: ${{ github.head_ref }}
ref: ${{ github.sha }}
check-name: 'api-test'
repo-token: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 2407129

Please sign in to comment.