Add action for debugging groups (#4143) #8376
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: Release Drafter | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - beta | |
| jobs: | |
| update_release_draft: | |
| name: Update release draft | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Generate Release Drafter config with supporters | |
| id: supporters | |
| env: | |
| BMC_API_TOKEN: ${{ secrets.BMC_API_TOKEN }} | |
| BMC_SLUG: ${{ secrets.BMC_SLUG }} | |
| run: | | |
| set -eu | |
| set -eu | |
| section="$(python .github/scripts/generate_supporters_section.py)" | |
| # Store multiline output safely | |
| { | |
| echo "value<<EOF" | |
| echo "$section" | |
| echo "EOF" | |
| } >> "$GITHUB_OUTPUT" | |
| - name: Create Release | |
| uses: release-drafter/release-drafter@v7 | |
| with: | |
| footer: ${{ steps.supporters.outputs.value }} | |
| config-name: release-drafter.yml | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |