File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -64,14 +64,17 @@ jobs:
6464 gpg --no-default-keyring --keyring "gpg/pubring.kbx" --export --armor > all-keys.asc
6565 - run : git diff --exit-code -- all-keys.list all-keys.asc
6666
67+ - name : Verify if there are any keyring changes
68+ id : keyring-changes
69+ run : git diff --exit-code --quiet HEAD^ -- gpg/ || echo "HAS_CHANGED=true" >> "$GITHUB_OUTPUT"
70+
6771 - name : Validate that all non-v0.x releases can be verified using the keyring
72+ if : steps.keyring-changes.outputs.HAS_CHANGED == 'true'
6873 run : |
69- if git diff --exit-code --quiet HEAD^ -- gpg/; then
70- curl https://nodejs.org/dist/index.json \
71- | jq -r '.[].version | select(startswith("v0.") | not)' \
72- | while read -r VERSION; do
74+ curl https://nodejs.org/dist/index.json \
75+ | jq -r '.[].version | select(startswith("v0.") | not)' \
76+ | while read -r VERSION; do
7377 echo "Checking $VERSION..."
7478 curl --silent "https://nodejs.org/dist/${VERSION}/SHASUMS256.txt.asc" \
7579 | gpgv --keyring="gpg/pubring.kbx"
76- done
77- fi
80+ done
You can’t perform that action at this time.
0 commit comments