Handling workflow runs from external contributors
This commit is contained in:
parent
1375fdbf62
commit
d793144695
11
.github/workflows/validate-readme.yml
vendored
11
.github/workflows/validate-readme.yml
vendored
@ -43,8 +43,17 @@ jobs:
|
|||||||
echo "EOF" >> $GITHUB_OUTPUT
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Output diff to logs for non-write users
|
||||||
|
if: steps.check-diff.outputs.status == 'failure' && github.event.pull_request.head.repo.permissions.push != true
|
||||||
|
run: |
|
||||||
|
echo "::group::README.md diff (changes needed)"
|
||||||
|
echo "The following changes need to be made to README.md:"
|
||||||
|
echo ""
|
||||||
|
git diff README.md
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
- name: Comment on PR if README.md needs updating
|
- name: Comment on PR if README.md needs updating
|
||||||
if: steps.check-diff.outputs.status == 'failure'
|
if: steps.check-diff.outputs.status == 'failure' && github.event.pull_request.head.repo.permissions.push == true
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
header: readme-validation
|
header: readme-validation
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user