mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-09-20 00:06:21 +00:00
ci: update pinned hashes on renovate updates
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
6e961997ac
commit
58a5c47d30
16
.github/workflows/test-go-generate.yml
vendored
16
.github/workflows/test-go-generate.yml
vendored
@ -17,6 +17,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: constellation
|
path: constellation
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
|
token: ${{ secrets.TIDY_RENOVATE_PUSH }}
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
||||||
@ -42,6 +43,7 @@ jobs:
|
|||||||
echo "submods=${mods}" >> "$GITHUB_OUTPUT"
|
echo "submods=${mods}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Go generate check
|
- name: Go generate check
|
||||||
|
id: generatecheck
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: constellation
|
working-directory: constellation
|
||||||
run: |
|
run: |
|
||||||
@ -50,3 +52,17 @@ jobs:
|
|||||||
go generate $mod/...
|
go generate $mod/...
|
||||||
done
|
done
|
||||||
git diff --exit-code
|
git diff --exit-code
|
||||||
|
|
||||||
|
- name: Push changes on renovate branch
|
||||||
|
if: failure() && (steps.generatecheck.conclusion == 'failure') && startsWith(github.head_ref, 'renovate/')
|
||||||
|
shell: bash
|
||||||
|
working-directory: constellation
|
||||||
|
run: |
|
||||||
|
diff_dirs=$(git diff --name-only)
|
||||||
|
if [[ "${diff_dirs}" == "internal/versions/versions.go" ]]; then
|
||||||
|
echo "internal/versions/versions.go is the only changed file, so we can push the changes."
|
||||||
|
git config --global user.name "renovate[bot]"
|
||||||
|
git config --global user.email "29139614+renovate[bot]@users.noreply.github.com"
|
||||||
|
git commit -am "[bot] Update versions.go"
|
||||||
|
git push
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user