From 7e16424f44ffa57b80e76529092cdf0b7b58fa0a Mon Sep 17 00:00:00 2001 From: Saq Imtiaz Date: Thu, 11 Jul 2024 15:02:43 +0200 Subject: [PATCH] Updates check-cla workflow (#8368) --- .github/workflows/cla-check.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cla-check.yml b/.github/workflows/cla-check.yml index ac096289e..c6927fad9 100644 --- a/.github/workflows/cla-check.yml +++ b/.github/workflows/cla-check.yml @@ -1,13 +1,17 @@ name: Check CLA Signature on: - pull_request: + pull_request_target: types: - opened + - reopened + paths-ignore: + - 'licenses/cla-individual.md' jobs: check_cla: runs-on: ubuntu-latest permissions: pull-requests: write + if: ${{ (github.event.pull_request.user.login != github.repository_owner) }} steps: - run: | if ! curl -s https://raw.githubusercontent.com/Jermolene/TiddlyWiki5/tiddlywiki-com/licenses/cla-individual.md | grep -o "@$USER,"; then @@ -17,6 +21,7 @@ jobs: With apologies for the bureaucracy, please could you prepare a separate PR to the 'tiddlywiki-com' branch with your signature for the Contributor License Agreement (see [contributing.md](https://github.com/Jermolene/TiddlyWiki5/blob/master/contributing.md))." else echo "CLA already signed" + gh pr comment "$NUMBER" -b "**$USER** has signed the Contributor License Agreement (see [contributing.md](https://github.com/Jermolene/TiddlyWiki5/blob/master/contributing.md))" fi env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}