Remove links from dinosaur facts #313
Workflow file for this run
This file contains 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 validation | |
on: [pull_request] | |
jobs: | |
schema_validation: | |
name: JSON files are valid | |
runs-on: ubuntu-latest | |
container: node:latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install validator | |
run: npm install joi@^17.2.1 | |
- name: validate all documents | |
run: node ./.github/workflows/validate.js | |
# Enable automatic merging on pull requests, so that once tests pass, the | |
# pull request will merge itself. No waiting. Let's simplify this thing! | |
merge: | |
name: turn on auto-merge | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'pull_request' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: mgwalker/[email protected] | |
id: org-check | |
with: | |
orgs: 18f cloud-gov digital-analytics-program digitalgov presidential-innovation-fellows usagov uswds | |
- if: ${{ steps.org-check.outputs.in_orgs == 'true' || github.actor == 'dependabot[bot]' }} | |
run: gh pr merge "$GITHUB_HEAD_REF" --auto --squash |