Skip to content

Commit e822d88

Browse files
authored
Merge pull request #34 from negillett/ci/conformance-cert-bot-publish-fix
ci: fix cert-bot conformance root publish for new files
2 parents 7231774 + 2f5eee1 commit e822d88

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/conformance-attestation.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ jobs:
133133
set -euo pipefail
134134
cp intentproof-spec/conformance-certificate.json conformance-certificate.json
135135
cp intentproof-spec/conformance-report.json conformance-report.json
136-
if git diff --quiet -- conformance-certificate.json conformance-report.json; then
136+
git add conformance-certificate.json conformance-report.json
137+
if git diff --cached --quiet -- conformance-certificate.json conformance-report.json; then
137138
echo "No conformance artifact updates to commit."
138139
exit 0
139140
fi
140141
git config user.name "intentproof-cert-bot[bot]"
141142
git config user.email "intentproof-cert-bot[bot]@users.noreply.github.com"
142143
git config --local --unset-all http.https://github.com/.extraheader || true
143144
git remote set-url origin "https://x-access-token:${INTENTPROOF_CERT_BOT_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
144-
git add conformance-certificate.json conformance-report.json
145-
git commit -m "chore(ci): update conformance certificate and report"
145+
git commit -m "chore(ci): update conformance certificate and report" -- conformance-certificate.json conformance-report.json
146146
git push

0 commit comments

Comments
 (0)