From aa86724a78a82b9b657bd5bb1e030cd1742723ef Mon Sep 17 00:00:00 2001 From: vankichi Date: Tue, 22 Oct 2024 15:21:40 +0900 Subject: [PATCH] :green_heart: Add labels Signed-off-by: vankichi --- .github/workflows/update-deps.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/update-deps.yaml b/.github/workflows/update-deps.yaml index a29acfe2b41..bfda04e64a8 100644 --- a/.github/workflows/update-deps.yaml +++ b/.github/workflows/update-deps.yaml @@ -61,6 +61,16 @@ jobs: git diff && git status echo "HAS_GIT_DIFF=true" >> $GITHUB_OUTPUT fi + - name: Get Label + id: pr-label + if: ${{ steps.check_diff.outputs.HAS_GIT_DIFF == 'true' }} + run: | + LATEST=$(make version/vald | grep -o -E "[0-9]+\.[0-9]+") + if ${LATEST} eq "1.7"; then + echo "LABELS=release/v${LATEST}" >> $GITHUB_OUTPUT + else + SUPPORT=$(echo ${LATEST} | awk '{print $1-0.1}') + echo "LABELS=actions/backport/release/v${LATEST},release/v${SUPPORT}" - name: Create PR if: ${{ steps.check_diff.outputs.HAS_GIT_DIFF == 'true' }} uses: peter-evans/create-pull-request@v7 @@ -73,3 +83,4 @@ jobs: base: main title: "Update libs dependency" body: "Automated pull request to update Dependencies." + labels: ${{ steps.pr-label.LABELS }}