chore(infra/website): tf-apply pipeline + restore Route53-record management #862
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: License Agreement Check | |
| on: | |
| pull_request_target: | |
| types: [opened, edited, synchronize, reopened, ready_for_review] | |
| issue_comment: | |
| types: [created, edited, deleted] | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| issues: write | |
| statuses: write | |
| concurrency: | |
| group: license-agreement-${{ github.event.pull_request.number || github.event.issue.number }} | |
| # Let an in-flight run finish so it can post its final commit status. With | |
| # `cancel-in-progress: true` a synchronize event would cancel the prior run | |
| # mid-flight, leaving a CANCELLED check on the PR rollup even for team-member | |
| # PRs that the script would otherwise mark `success`. | |
| cancel-in-progress: false | |
| jobs: | |
| license-agreement: | |
| if: github.event_name != 'issue_comment' || github.event.issue.pull_request | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.repository.default_branch }} | |
| persist-credentials: false | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Check license agreement | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: node .github/scripts/license-agreement-check.mjs |