Add sunbeam CNAME record for hackclub.com #5887
Workflow file for this run
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: json-yaml-validate | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| merge_group: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| json-yaml-validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: json-yaml-validate | |
| id: json-yaml-validate | |
| continue-on-error: true | |
| uses: GrantBirki/json-yaml-validate@v5.0.0 | |
| with: | |
| comment: "false" | |
| - name: Write PR feedback metadata | |
| if: github.event_name == 'pull_request' && steps.json-yaml-validate.outcome == 'failure' | |
| env: | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| run: | | |
| mkdir -p .github/pr-feedback/json-yaml-validate | |
| printf '%s\n' "$PR_NUMBER" > .github/pr-feedback/json-yaml-validate/pr_number | |
| printf '%s\n' "json-yaml-validate" > .github/pr-feedback/json-yaml-validate/type | |
| - name: Upload PR feedback metadata | |
| if: github.event_name == 'pull_request' && steps.json-yaml-validate.outcome == 'failure' | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: pr-feedback-json-yaml-validate | |
| retention-days: 1 | |
| path: | | |
| .github/pr-feedback/json-yaml-validate/pr_number | |
| .github/pr-feedback/json-yaml-validate/type | |
| - name: Fail if validation failed | |
| if: steps.json-yaml-validate.outcome == 'failure' | |
| run: exit 1 | |
| sort-check: | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/main') | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3" | |
| - name: Install dependencies | |
| run: pip install natsort ruamel.yaml | |
| - name: Check sort order | |
| id: sort-check | |
| continue-on-error: true | |
| run: python3 bin/sort-zones --check | |
| - name: Write PR feedback metadata | |
| if: github.event_name == 'pull_request' && steps.sort-check.outcome == 'failure' | |
| env: | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| run: | | |
| mkdir -p .github/pr-feedback/sort-check | |
| printf '%s\n' "$PR_NUMBER" > .github/pr-feedback/sort-check/pr_number | |
| printf '%s\n' "sort-check" > .github/pr-feedback/sort-check/type | |
| - name: Upload PR feedback metadata | |
| if: github.event_name == 'pull_request' && steps.sort-check.outcome == 'failure' | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: pr-feedback-sort-check | |
| retention-days: 1 | |
| path: | | |
| .github/pr-feedback/sort-check/pr_number | |
| .github/pr-feedback/sort-check/type | |
| - name: Fail if sort check failed | |
| if: steps.sort-check.outcome == 'failure' | |
| run: exit 1 |