Skip to content

Commit 0863a9a

Browse files
committed
fixed outdated var and moved fatimage to bumped branch
1 parent 94b5eef commit 0863a9a

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.github/workflows/fatimage.yml

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

5356
steps:
57+
58+
- name: Get current context
59+
id: get_branch
60+
run: |
61+
if [[ ${{ github.event_name == 'workflow_dispatch' }} == true ]]; then
62+
target_branch=${{ github.ref }}
63+
else
64+
target_branch=${{ github.event.inputs.branch }}
65+
fi
66+
echo "target_branch=$target_branch" >> "$GITHUB_OUTPUT"
67+
5468
- uses: actions/checkout@v2
69+
with:
70+
ref: ${{ steps.get_branch.outputs.target_branch }}
5571

5672
- name: Record settings for CI cloud
5773
run: |

.github/workflows/update-timestamps.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v2
15-
with: #temporary
16-
ref: feat/auto-bump-timestamps #temporary
1715

1816
- name: Check for updated Ark timestamps and replace in defaults.yml
1917
run: |
@@ -45,6 +43,8 @@ jobs:
4543
if: "${{ needs.upstream_check.outputs.timestamps_changed }} == 0"
4644
needs: upstream_check
4745
uses: ./.github/workflows/fatimage.yml
46+
with:
47+
ci_cloud: LEAFCLOUD
4848

4949
ci_and_pr:
5050
if: "${{ needs.upstream_check.outputs.timestamps_changed }} == 0"

ansible/ci/update_timestamps.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
{{ yaml_template | to_nice_yaml(indent=2) }}
1919
vars:
2020
yaml_template:
21-
appliances_repo_timestamps: "{{ _result.latest_dict }}"
21+
appliances_pulp_repos: "{{ _result.latest_dict }}"
2222
when: (_result.changed_timestamps | count) > 0

0 commit comments

Comments
 (0)