Skip to content

Commit 6623b7c

Browse files
authored
Merge pull request #50 from rimolive/rmartine-commit-checker
Final fix for Commit Checker GH Action
2 parents effca01 + dcbeed8 commit 6623b7c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/commit-check-pr.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
- completed
77
env:
88
QUAY_ORG: opendatahub
9-
QUAY_ID: ${{ secrets.QUAY_ROBOT_USERNAME }}
10-
QUAY_TOKEN: ${{ secrets.QUAY_ROBOT_TOKEN }}
119
GH_USER_EMAIL: 140449482+dsp-developers@users.noreply.github.com
1210
GH_USER_NAME: dsp-developers
1311
jobs:
@@ -79,6 +77,7 @@ jobs:
7977
run: |
8078
git config user.email "${{ env.GH_USER_EMAIL }}"
8179
git config user.name "${{ env.GH_USER_NAME }}"
80+
gh pr checkout ${{ env.PR_NUMBER }}
8281
8382
cat <<"EOF" >> /tmp/body-file.txt
8483
### Commit Checker results:
@@ -89,6 +88,9 @@ jobs:
8988
you adhere to the commit checker formatting
9089
```
9190
EOF
91+
92+
echo "\`\`\`" >> /tmp/body-file.txt
9293
podman run -q -v ${{ github.workspace }}:/src/app-root quay.io/rmartine/commitchecker:latest --start ${{ steps.get-commits.outputs.master_commit_hash }} --end ${{ steps.get-commits.outputs.last_commit_hash }} >> /tmp/body-file.txt 2>&1 || true
94+
echo "\`\`\`" >> /tmp/body-file.txt
9395
9496
gh pr comment ${{ env.PR_NUMBER }} --body-file /tmp/body-file.txt

0 commit comments

Comments
 (0)