mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
ci: fix diff check in tidy workflow
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
d7fafb92b7
commit
d3e2f30f7b
6
.github/workflows/test-tidy.yml
vendored
6
.github/workflows/test-tidy.yml
vendored
@ -53,7 +53,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
echo "Detected changes after tidy"
|
echo "Detected changes after tidy"
|
||||||
echo "untidy=true" | tee -a "$GITHUB_OUTPUT"
|
echo "untidy=true" | tee -a "$GITHUB_OUTPUT"
|
||||||
diffsum=$(echo "$diff" | sha256sum)
|
diffsum=$(echo "$diff" | sha256sum | cut -d' ' -f1)
|
||||||
echo "diffsum=${diffsum}" | tee -a "$GITHUB_OUTPUT"
|
echo "diffsum=${diffsum}" | tee -a "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Run Bazel generate
|
- name: Run Bazel generate
|
||||||
@ -65,8 +65,8 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
diff=$(git diff)
|
diff=$(git diff)
|
||||||
diffsum=$(echo "$diff" | sha256sum)
|
diffsum=$(echo "$diff" | sha256sum| cut -d' ' -f1)
|
||||||
if [[ "${{ steps.untidy.outputs.diffsum }}" != "$diffsum" ]]; then
|
if [[ "${{ steps.untidy.outputs.diffsum }}" == "${diffsum}" ]]; then
|
||||||
echo "Everything is tidy."
|
echo "Everything is tidy."
|
||||||
echo "ungenerated=false" >> "$GITHUB_OUTPUT"
|
echo "ungenerated=false" >> "$GITHUB_OUTPUT"
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user