Skip to content

Commit

Permalink
Merge pull request #50 from rimolive/rmartine-commit-checker
Browse files Browse the repository at this point in the history
Final fix for Commit Checker GH Action
  • Loading branch information
HumairAK authored Jun 4, 2024
2 parents effca01 + dcbeed8 commit 6623b7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/commit-check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
- completed
env:
QUAY_ORG: opendatahub
QUAY_ID: ${{ secrets.QUAY_ROBOT_USERNAME }}
QUAY_TOKEN: ${{ secrets.QUAY_ROBOT_TOKEN }}
GH_USER_EMAIL: 140449482+dsp-developers@users.noreply.github.com
GH_USER_NAME: dsp-developers
jobs:
Expand Down Expand Up @@ -79,6 +77,7 @@ jobs:
run: |
git config user.email "${{ env.GH_USER_EMAIL }}"
git config user.name "${{ env.GH_USER_NAME }}"
gh pr checkout ${{ env.PR_NUMBER }}
cat <<"EOF" >> /tmp/body-file.txt
### Commit Checker results:
Expand All @@ -89,6 +88,9 @@ jobs:
you adhere to the commit checker formatting
```
EOF
echo "\`\`\`" >> /tmp/body-file.txt
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
echo "\`\`\`" >> /tmp/body-file.txt
gh pr comment ${{ env.PR_NUMBER }} --body-file /tmp/body-file.txt

0 comments on commit 6623b7c

Please sign in to comment.