Update CLA workflow
@@ -9,10 +9,16 @@ jobs:
CLAssistant:
runs-on: ubuntu-latest
steps:
+ - uses: actions-ecosystem/action-regex-match@v2
+ id: sign-or-recheck
+ with:
+ text: ${{ github.event.comment.body }}
+ regex: '\s*(I have read the CLA Document and I hereby sign the CLA)|(recheckcla)\s*'
+
- name: "CLA Assistant"
- if: (github.event.comment.body == 'recheckcla' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
+ if: ${{ steps.sign-or-recheck.outputs.match != '' }} || github.event_name == 'pull_request_target'
# Alpha Release
- uses: cla-assistant/github-action@v2.0.1-alpha
+ uses: cla-assistant/github-action@v2.1.1-beta
env:
# Generated and maintained by github
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -20,7 +26,7 @@ jobs:
PERSONAL_ACCESS_TOKEN : ${{ secrets.CLA_SIGN_TOKEN }}
with:
path-to-signatures: 'signed_clas.json'
- path-to-cla-document: 'https://jfrog.com/cla/'
+ path-to-document: 'https://jfrog.com/cla/'
remote-organization-name: 'jfrog'
remote-repository-name: 'jfrog-signed-clas'
# branch should not be protected
