Skip to content

Commit

Permalink
Use git reset rather than git checkout for spack-packages update (
Browse files Browse the repository at this point in the history
#166)

* deploy-2-start.yml: Use `git reset` rather than `git checkout` to ensure we have remotes copy of history

* deploy-2-start.yml: Checkout the branch before force-resetting
  • Loading branch information
CodeGat authored Nov 14, 2024
1 parent 08150ba commit 0deb92c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy-2-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ jobs:
# Update spack-packages
git -C ${{ steps.path.outputs.spack-packages }} fetch
git -C ${{ steps.path.outputs.spack-packages }} checkout --force ${{ steps.versions.outputs.packages }}
git -C ${{ steps.path.outputs.spack-packages }} reset --hard origin/${{ steps.versions.outputs.packages }}
# Enable spack
. ${{ steps.path.outputs.spack-config }}/spack-enable.bash
Expand Down

0 comments on commit 0deb92c

Please sign in to comment.