Skip to content

Commit 620efa6

Browse files
committed
fixup! fixup! chore(ci): add workflow to validate gpg/ folder content
1 parent fcc5a39 commit 620efa6

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)