forked from kubeflow/pipelines
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from rimolive/rmartine-commit-checker
Final fix for Commit Checker GH Action
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: [email protected] | ||
GH_USER_NAME: dsp-developers | ||
jobs: | ||
|
@@ -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: | ||
|
@@ -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 |