Skip to content

Commit cfc14a3

Browse files
committed
fix losing tf state on new checkout
1 parent 4c40546 commit cfc14a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/stackhpc.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
uses: actions/checkout@v4
5454
with:
5555
ref: ${{ env.LATEST_RELEASE_TAG }}
56+
fetch-depth: 0
5657

5758
- name: Find stackhpc tofu/terraform directory
5859
# changed in https://github.com/stackhpc/ansible-slurm-appliance/pull/541
@@ -186,7 +187,7 @@ jobs:
186187
DEMO_USER_PASSWORD: ${{ secrets.TEST_USER_PASSWORD }}
187188

188189
- name: Checkout current branch
189-
uses: actions/checkout@v4
190+
run: git checkout ${{ github.head_ref || github.ref_name }}
190191

191192
- name: Update ansible, pip and galaxy requirements
192193
run: dev/setup-env.sh

0 commit comments

Comments
 (0)