1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-12 21:09:57 +00:00

Updates check-cla workflow (#8368)

This commit is contained in:
Saq Imtiaz 2024-07-11 15:02:43 +02:00 committed by GitHub
parent 4a907b85ae
commit 7e16424f44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,13 +1,17 @@
name: Check CLA Signature name: Check CLA Signature
on: on:
pull_request: pull_request_target:
types: types:
- opened - opened
- reopened
paths-ignore:
- 'licenses/cla-individual.md'
jobs: jobs:
check_cla: check_cla:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
pull-requests: write pull-requests: write
if: ${{ (github.event.pull_request.user.login != github.repository_owner) }}
steps: steps:
- run: | - run: |
if ! curl -s https://raw.githubusercontent.com/Jermolene/TiddlyWiki5/tiddlywiki-com/licenses/cla-individual.md | grep -o "@$USER,"; then 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))." 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 else
echo "CLA already signed" 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 fi
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}