github.com/hugh712/snapd@v0.0.0-20200910133618-1a99902bd583/.github/workflows/cla-check.yaml (about) 1 name: cla-check 2 on: 3 # Only run on pull requests: not pushes 4 pull_request: 5 branches: [ "master", "release/**" ] 6 7 jobs: 8 cla-check: 9 runs-on: self-hosted 10 steps: 11 - name: Install dependencies 12 run: | 13 # sudo apt-get update 14 # sudo apt-get install python-launchpadlib 15 # TODO: make this conditional on self-hosted or not 16 echo "dependencies are baked into unprivileged test containers" 17 - name: Checkout code 18 uses: actions/checkout@v2 19 with: 20 # The cla_check script reads git commit history, so can't 21 # use a shallow checkout. 22 fetch-depth: 0 23 - name: Fetching base ref ${{ github.base_ref }} 24 run: git fetch origin ${{ github.base_ref }}:${{ github.base_ref }} 25 - name: CLA check 26 run: ./tests/lib/cla_check.py "${{ github.base_ref }}..HEAD"