Skip to content

Commit

Permalink
cla: via shared workflow
Browse files Browse the repository at this point in the history
Modify the cla.yaml workflow to use a reusable workflow.
  • Loading branch information
thepwagner authored Jul 27, 2023
1 parent a9d2a75 commit 18eb6c7
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@ on:
issue_comment:
types: [created]

permissions: {}

jobs:
cla:
runs-on: ubuntu-latest
if: |
(github.event.issue.pull_request
&& !github.event.issue.pull_request.merged_at
&& contains(github.event.comment.body, 'signed')
)
|| (github.event.pull_request && !github.event.pull_request.merged)
steps:
- uses: Shopify/shopify-cla-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
cla-token: ${{ secrets.CLA_TOKEN }}
uses: Shopify/github-workflows/.github/workflows/cla.yaml@c395c2cfd65be9a36f5dcfd21f4a2498a477fed4 # v0.0.6
permissions:
pull-requests: write
secrets:
token: ${{secrets.GITHUB_TOKEN}}
cla-token: ${{secrets.CLA_TOKEN}}

0 comments on commit 18eb6c7

Please sign in to comment.