Skip to content

Commit 365e54f

Browse files
committed
fixed not failing if branch hasn't been created
1 parent 7ba077a commit 365e54f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/fatimage.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
ci_cloud_override:
1616
type: string
1717
default: LEAFCLOUD
18+
target_branch:
19+
type: string
20+
default: ${{ github.ref }}
1821
outputs:
1922
openhpc-RL8-image:
2023
description: "RL8 image"
@@ -51,7 +54,9 @@ jobs:
5154
openhpc-RL9-image: "${{ steps.manifest.outputs.openhpc-RL9-image }}"
5255

5356
steps:
54-
- uses: actions/checkout@v2
57+
- uses: actions/checkout@v3
58+
with:
59+
ref: ${{ github.event_name == 'workflow_dispatch' && github.ref || inputs.target_branch }}
5560

5661
- name: Record settings for CI cloud
5762
run: |

.github/workflows/update-timestamps.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ jobs:
8282
if: needs.upstream_check.outputs.new_fatimage == 'true'
8383
needs: upstream_check
8484
secrets: inherit
85-
uses: stackhpc/ansible-slurm-appliance/.github/workflows/fatimage.yml@auto/bump-timestamps
85+
uses: ./.github/workflows/fatimage.yml
8686
with:
8787
ci_cloud_override: 'LEAFCLOUD'
88+
target_branch: auto/bump-timestamps
8889

8990
bump_timestamps:
9091
if: needs.upstream_check.outputs.new_fatimage == 'true'

0 commit comments

Comments
 (0)