mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-04 09:05:31 -05:00
ci: fix hcl lock files on renovate branch
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
48e0b3a9cd
commit
688003cdd9
10
.github/workflows/test-tf.yml
vendored
10
.github/workflows/test-tf.yml
vendored
@ -41,6 +41,7 @@ jobs:
|
|||||||
exit $result
|
exit $result
|
||||||
|
|
||||||
- name: Check HCL lock files are up to date
|
- name: Check HCL lock files are up to date
|
||||||
|
id: hcl-lock
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
dirs=$( find . -type f -name "*.lock.hcl" -exec dirname "{}" \; | sort -ud)
|
dirs=$( find . -type f -name "*.lock.hcl" -exec dirname "{}" \; | sort -ud)
|
||||||
@ -50,3 +51,12 @@ jobs:
|
|||||||
terraform -chdir="$dir" providers lock -platform=linux_arm64 -platform=linux_amd64 -platform=darwin_arm64 -platform=darwin_amd64 -platform=windows_amd64
|
terraform -chdir="$dir" providers lock -platform=linux_arm64 -platform=linux_amd64 -platform=darwin_arm64 -platform=darwin_amd64 -platform=windows_amd64
|
||||||
done
|
done
|
||||||
git diff --exit-code
|
git diff --exit-code
|
||||||
|
|
||||||
|
- name: Push changes on renovate
|
||||||
|
if: ${{ failure() && (steps.hcl-lock.conclusion == 'failure') && startsWith(github.head_ref, 'renovate/') }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
git config --global user.name "renovate[bot]"
|
||||||
|
git config --global user.email "29139614+renovate[bot]@users.noreply.github.com"
|
||||||
|
git commit -am "[bot] Update HCL lock files"
|
||||||
|
git push
|
||||||
|
Loading…
x
Reference in New Issue
Block a user