feat: label PR with release tags (#28107)

This commit is contained in:
Maxime Beauchemin 2024-04-18 12:04:52 -07:00 committed by GitHub
parent 4c1e2bcc7a
commit 947391778e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 1 deletions

View File

@ -1,4 +1,4 @@
name: Docker Publish Release
name: Publish a Release
on:
release:
@ -99,3 +99,14 @@ jobs:
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Label the PRs with the right release-related labels
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
RELEASE="${{ github.event.release.tag_name }}"
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
# in the case of a manually-triggered run, read release from input
RELEASE="${{ github.event.inputs.release }}"
fi
supersetbot release-label $RELEASE