Skip to content

Commit 3f76a7c

Browse files
committed
made more idempotent + terraform typo
1 parent 636cee3 commit 3f76a7c

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/update-timestamps.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,21 +86,18 @@ jobs:
8686
with:
8787
ci_cloud_override: 'LEAFCLOUD'
8888

89-
ci_and_pr:
89+
bump_timestamps:
9090
if: needs.upstream_check.outputs.new_fatimage == 'true'
91-
needs:
92-
- upstream_check
93-
- build_fatimage
91+
needs: build_fatimage
9492
runs-on: ubuntu-latest
9593
steps:
9694
- uses: actions/checkout@v2
9795
with:
9896
ref: auto/bump-timestamps
99-
10097
- name: Bump CI with new images
10198
run: |
10299
git checkout auto/bump-timestamps
103-
sed -i 's/"RL8".*$/"RL8": "${{ needs.build_fatimage.outputs.openhpc-RL8-image }}"/' environments/.stackhpc/terraform/cluster_image.auto.tfvars.json
100+
sed -i 's/"RL8".*$/"RL8": "${{ needs.build_fatimage.outputs.openhpc-RL8-image }},"/' environments/.stackhpc/terraform/cluster_image.auto.tfvars.json
104101
sed -i 's/"RL9".*$/"RL9": "${{ needs.build_fatimage.outputs.openhpc-RL9-image }}"/' environments/.stackhpc/terraform/cluster_image.auto.tfvars.json
105102
106103
- name: Push new images
@@ -111,6 +108,14 @@ jobs:
111108
git commit -m "Bumped images"
112109
git push
113110
111+
create_pr:
112+
needs: bump_timestamps
113+
runs-on: ubuntu-latest
114+
steps:
115+
- uses: actions/checkout@v2
116+
with:
117+
ref: auto/bump-timestamps
118+
114119
- name: Check if PR exists
115120
id: pr-check
116121
run: |

0 commit comments

Comments
 (0)