You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2024/04/18 19:04:58 UTC

(superset) branch master updated: feat: label PR with release tags (#28107)

This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 947391778e feat: label PR with release tags (#28107)
947391778e is described below

commit 947391778e685f3e7b0c7c4130ddaab5c1a0c0a2
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Thu Apr 18 12:04:52 2024 -0700

    feat: label PR with release tags (#28107)
---
 .github/workflows/{docker-release.yml => tag-release.yml} | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/docker-release.yml b/.github/workflows/tag-release.yml
similarity index 86%
rename from .github/workflows/docker-release.yml
rename to .github/workflows/tag-release.yml
index 88e4330aaa..7de6619485 100644
--- a/.github/workflows/docker-release.yml
+++ b/.github/workflows/tag-release.yml
@@ -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