Skip to content

Add repo setup orchestration commands #1544

Add repo setup orchestration commands

Add repo setup orchestration commands #1544

Workflow file for this run

name: Contributor License Agreement (CLA)
on:
pull_request_target:
types: [opened, synchronize, reopened]
issue_comment:
types: [created]
jobs:
cla:
runs-on: ubuntu-latest
permissions:
actions: write
pull-requests: write
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:
- name: Check CLA_TOKEN availability
id: gate
env:
CLA_TOKEN: ${{ secrets.CLA_TOKEN }}
run: |
if [ -z "$CLA_TOKEN" ]; then
echo "CLA_TOKEN not configured — skipping."
echo "skip=true" >> "$GITHUB_OUTPUT"
else
echo "skip=false" >> "$GITHUB_OUTPUT"
fi
- uses: Shopify/shopify-cla-action@v1
if: steps.gate.outputs.skip != 'true'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
cla-token: ${{ secrets.CLA_TOKEN }}