Skip to content

Commit 3d3d4c9

Browse files
committed
chore: feedback from review
1 parent 9d01344 commit 3d3d4c9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/upstream-sysroot.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,11 @@ jobs:
2929
run: |
3030
if [ -n "${{ github.event.inputs.current-sha }}" ]; then
3131
CURRENT_SHA="${{ github.event.inputs.current-sha }}"
32+
elif [ -f current-sha.json ]; then
33+
CURRENT_SHA=$(jq -r '.sha' current-sha.json)
3234
else
33-
if [ -f current-sha.json ]; then
34-
CURRENT_SHA=$(jq -r '.sha' current-sha.json)
35-
else
36-
echo "No current SHA provided and current-sha.json not found."
37-
exit 1
38-
fi
35+
echo "No current SHA provided and current-sha.json not found."
36+
exit 1
3937
fi
4038
echo "CURRENT_SHA=${CURRENT_SHA}" >> $GITHUB_ENV
4139
- name: Fetch latest upstream SHA

0 commit comments

Comments
 (0)