Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/check-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,15 @@ jobs:

- name: Fetch pull request template
run: |
curl --fail --location --retry 3 --show-error --silent --output "${RUNNER_TEMP:?}/check-prs/template" \
"https://raw.githubusercontent.com/${GITHUB_REPOSITORY:?}/refs/heads/main/.github/PULL_REQUEST_TEMPLATE.md"
gh api "repos/${GITHUB_REPOSITORY:?}/contents/.github/PULL_REQUEST_TEMPLATE.md?ref=main" \
--jq ".content" |
base64 --decode >"${RUNNER_TEMP:?}/check-prs/template"

- name: Fetch template checker
run: |
curl --fail --location --retry 3 --show-error --silent --output "${RUNNER_TEMP:?}/check_template.rb" \
https://raw.githubusercontent.com/Homebrew/.github/refs/heads/main/.github/scripts/check_template.rb
gh api "repos/Homebrew/.github/contents/.github/scripts/check_template.rb?ref=main" \
--jq ".content" |
base64 --decode >"${RUNNER_TEMP:?}/check_template.rb"

- name: Check pull request template
id: template
Expand Down
Loading