Use PostData.String, PostData.Serializable of anonymous objects not available under AOT #5624
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: required-labels | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- labeled | |
- unlabeled | |
- synchronize | |
permissions: | |
contents: read | |
jobs: | |
check-labels: | |
permissions: | |
contents: read | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Wait for PR to be ready (if just opened) | |
if: github.event_name == 'pull_request_target' && github.event.action == 'opened' | |
run: sleep 30 | |
- id: get-labels | |
run: | | |
labels=$(yq '[.categories[].labels] + .exclude-labels | flatten | unique | sort | @tsv' .github/release-drafter.yml | tr '\t' ',') | |
echo "labels=$labels" >> "${GITHUB_OUTPUT}" | |
- id: check-labels | |
uses: mheap/github-action-required-labels@8afbe8ae6ab7647d0c9f0cfa7c2f939650d22509 # v5.5 | |
with: | |
mode: exactly | |
count: 1 | |
use_regex: false | |
add_comment: true | |
labels: ${{ steps.get-labels.outputs.labels }} |