Forms: Add Akismet panel to form block #532
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: Coverage check | |
on: | |
pull_request: | |
types: [labeled, unlabeled] | |
workflow_dispatch: | |
inputs: | |
pr: | |
description: PR | |
type: number | |
required: true | |
concurrency: | |
group: coverage-check-${{ github.head_ref || github.ref_name }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || inputs.pr }}-${{ github.event.pull_request.label.id || '' }} | |
cancel-in-progress: true | |
permissions: | |
checks: read | |
pull-requests: write | |
statuses: write | |
jobs: | |
code-coverage-label: | |
name: "Update code coverage check" | |
runs-on: ubuntu-latest | |
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'I don''t care about code coverage for this PR' | |
timeout-minutes: 5 # 2025-02-06: Should be pretty quick. | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Get token | |
id: get_token | |
uses: ./.github/actions/gh-app-token | |
with: | |
app_id: ${{ secrets.JP_LAUNCH_CONTROL_ID }} | |
private_key: ${{ secrets.JP_LAUNCH_CONTROL_KEY }} | |
- name: Post message | |
env: | |
PR_ID: ${{ github.event_name == 'pull_request' && github.event.pull_request.number || inputs.pr }} | |
PR_HEAD: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} | |
POST_MESSAGE_TOKEN: ${{ steps.get_token.outputs.token }} | |
run: .github/files/coverage-munger/post-message.sh |