Skip to content

Commit

Permalink
ops: add github cla action
Browse files Browse the repository at this point in the history
  • Loading branch information
greenpau committed Jan 4, 2024
1 parent 360e735 commit 69bfa05
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml → .github/workflows/build.yml
Expand Up @@ -52,6 +52,9 @@ jobs:
- name: Install Go modules
run: |
make dep
go mod tidy
go mod verify
go mod download
- name: Validate prerequisites
run: |
echo "*** Local binaries ***"
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/cla.yml
@@ -0,0 +1,27 @@
name: "CLA Assistant"
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened,closed,synchronize]

permissions:
actions: write
contents: write
pull-requests: write
statuses: write

jobs:
CLAAssistant:
runs-on: ubuntu-latest
steps:
- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
uses: contributor-assistant/github-action@v2.3.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
path-to-signatures: 'assets/cla/signatures.json'
path-to-document: 'https://github.com/greenpau/caddy-lambda/blob/main/assets/cla/CLA.md'
branch: 'main'
allowlist: greenpau,bot*

0 comments on commit 69bfa05

Please sign in to comment.