LONDON | COHORT | DANIEL WAGNER-HALL | Sprint 1 | ShouldError2 #9
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: Validate PR Metadata | |
on: | |
pull_request: | |
types: | |
- labeled | |
- unlabeled | |
- opened | |
- edited | |
- reopened | |
jobs: | |
validate_pr_metadata: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download validator | |
run: curl --fail https://api.github.com/repos/CodeYourFuture/trainee-tracker/releases/latest | jq '.assets[] | select(.name == "pr-metadata-validator-musl").browser_download_url' | xargs curl --fail -L -o /tmp/pr-metadata-validator && chmod 0755 /tmp/pr-metadata-validator | |
- name: Validate PR Metadata | |
run: /tmp/pr-metadata-validator ${{ github.event.pull_request.html_url }} | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |