Skip to content

Commit 58e0af8

Browse files
committed
fixes
1 parent e45bb31 commit 58e0af8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/update-timestamps.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
5151
# TODO: find way to stop CI running if pushing to existing PR
5252
- name: Push new timestamps
53-
if: "${{ steps.timestamp_check.outputs.timestamps_changed }} == 0"
53+
if: steps.timestamp_check.outputs.timestamps_changed == '1'
5454
run: |
5555
git add environments/common/inventory/group_vars/all/defaults.yml
5656
git config user.name 'github-actions[bot]'
@@ -59,16 +59,16 @@ jobs:
5959
git config --global --add --bool push.autoSetupRemote true
6060
git push
6161
62+
# todo: don't skip if rerun
6263
build_fatimage:
63-
if: "${{ needs.upstream_check.outputs.timestamps_changed }} == 0"
64+
if: needs.upstream_check.outputs.timestamps_changed == '1'
6465
needs: upstream_check
6566
uses: stackhpc/ansible-slurm-appliance/.github/workflows/fatimage.yml@auto/bump-timestamps
6667
with:
6768
ci_cloud: LEAFCLOUD
68-
branch: auto/bump-timestamps
6969

7070
ci_and_pr:
71-
if: "${{ needs.upstream_check.outputs.timestamps_changed }} == 0"
71+
if: needs.upstream_check.outputs.timestamps_changed == '1'
7272
needs:
7373
- upstream_check
7474
- build_fatimage
@@ -100,5 +100,5 @@ jobs:
100100
echo "pr_exists=$?" >> "$GITHUB_OUTPUT"
101101
102102
- name: Create PR
103-
if: ${{ steps.pr-check.outputs.pr_exists }}
103+
if: steps.pr-check.outputs.pr_exists
104104
run: gh pr create --title "[Auto] Bump repo timestamps to latest" --base main --head auto/bump-timestamps

0 commit comments

Comments
 (0)