aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2022-12-01 01:46:03 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2022-12-04 17:47:12 +0100
commit26f35c40b624600b07292951c0ced58db500ce66 (patch)
tree6e8abe3811c235e76e39758cadc48d65f4482baa /.github
parentee05f20e9717669d979a8666d74b70fd3eb0e7a9 (diff)
downloadupstream-26f35c40b624600b07292951c0ced58db500ce66.tar.gz
upstream-26f35c40b624600b07292951c0ced58db500ce66.tar.bz2
upstream-26f35c40b624600b07292951c0ced58db500ce66.zip
CI: labeler: fix wrong label for pr targeting stable branch
The label used for stable branch is in the form of release/[0-9][0-9].[0-9][0-9] Currently we apply the name of the target branch as the label, fix this and correctly use the current label. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> (cherry picked from commit af8bc8e51b6daef65c497522b67a1dd9d0cdab84)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/labeler.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
index 62a895a68b..5f82b88a50 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/labeler.yml
@@ -22,12 +22,12 @@ jobs:
id: check-branch
run: |
if echo "${{ github.base_ref }}" | grep -q -E 'openwrt-[0-9][0-9]\.[0-9][0-9]'; then
- echo "apply-tag=yes" >> $GITHUB_OUTPUT
+ echo "release-tag=$(echo ${{ github.base_ref }} | sed 's/openwrt-/release\//')" >> $GITHUB_OUTPUT
fi
- uses: buildsville/add-remove-label@v2.0.0
- if: ${{ steps.check-branch.outputs.apply-tag }}
+ if: ${{ steps.check-branch.outputs.release-tag }}
with:
token: ${{secrets.GITHUB_TOKEN}}
- labels: ${{ github.base_ref }}
+ labels: ${{ steps.check-branch.outputs.release-tag }}
type: add