New ๐ŸŒŠ wave for @helm

Commit 270b884c

270b884c1394Merged

Dmitriy Zhilyaev <[email protected]> ยท 2 years ago ยท 1 file ยท +1 added

Description

fix(ci): new release-label.yml

Signed-off-by: Dmitriy Zhilyaev [email protected]

Details

Commit
270b884c1394
Parent
e435a339522b

.github/workflows/release-label.ymladdedView file

1+name: Release label
2+
3+on:
4+ pull_request:
5+ branches: [ main ]
6+ types: [ opened ]
7+
8+permissions:
9+ pull-requests: write
10+
11+jobs:
12+ release-label:
13+ runs-on: ubuntu-latest
14+ if: ${{ startsWith(github.event.pull_request.head.ref, 'release/') }}
15+ steps:
16+ - uses: actions/github-script@v7
17+ id: tag
18+ with:
19+ script: return context.payload.pull_request.head.ref.replace('release/', '')
20+ result-encoding: string
21+
22+
23+ - name: add release label
24+ run: gh pr edit ${{ github.event.number }} --add-label "release,v$TAG" -t "Release/$TAG"
25+ env:
26+ TAG: ${{ steps.tag.outputs.result }}
27+