diff options
Diffstat (limited to '.github/workflows/cla-check.yaml')
-rw-r--r-- | .github/workflows/cla-check.yaml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/cla-check.yaml b/.github/workflows/cla-check.yaml new file mode 100644 index 00000000..6d1f4dea --- /dev/null +++ b/.github/workflows/cla-check.yaml @@ -0,0 +1,21 @@ +name: cla-check +on: [pull_request] + +jobs: + cla-check: + runs-on: ubuntu-18.04 + steps: + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install python3-launchpadlib git + - name: Checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + # ensure we pull PR /head, not autogenerated /merge commit + ref: ${{ github.event.pull_request.head.sha }} + - name: Fetching base ref ${{ github.base_ref }} + run: git fetch origin ${{ github.base_ref }}:${{ github.base_ref }} + - name: Perform CLA check + run: ./.github/workflows/tools/cla_check.py "${{ github.base_ref }}..HEAD" |