Hide the Record button after a meeting ends #330
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CLA maintainer skip | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| permissions: | |
| contents: read | |
| statuses: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| skip: | |
| if: contains(fromJSON('["COLLABORATOR", "MEMBER", "OWNER"]'), github.event.pull_request.author_association) | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SHA: ${{ github.event.pull_request.head.sha }} | |
| run: | | |
| for _ in 1 2 3 4 5 6; do | |
| if gh api "repos/${GITHUB_REPOSITORY}/commits/${SHA}/status" \ | |
| --jq '.statuses[] | select(.context=="license/cla") | .state' \ | |
| | grep -q .; then | |
| break | |
| fi | |
| sleep 10 | |
| done | |
| gh api "repos/${GITHUB_REPOSITORY}/statuses/${SHA}" \ | |
| -f state=success \ | |
| -f context=license/cla \ | |
| -f description="Skipped for maintainers" |