Skip to content

Commit

Permalink
chore(ci): Fix release workflow build step checking out wrong commit
Browse files Browse the repository at this point in the history
actions/checkout checks out the latest commit at the time of the workflow trigger,
hence any commit done during the workflow is not included.
Fixing this to checkout the actual latest (release) commit.

Signed-off-by: David Pascual <[email protected]>
  • Loading branch information
dav-pascual committed Oct 9, 2023
1 parent 97a7cd0 commit e8e20f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ jobs:
needs: [release]
steps:
- uses: actions/checkout@v4
- name: Checkout latest release commit
run: |
git fetch
git checkout $(git rev-parse FETCH_HEAD)
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit e8e20f1

Please sign in to comment.