8181 yq -i '.annotations."artifacthub.io/changes" = ""' helm/defectdojo/Chart.yaml
8282
8383 - name : Run helm-docs
84- uses : losisin/helm-docs-github-action@2ccf3e77eb70dc80d62f8cc26f15d0a96b75fef4 # v1.8.0
84+ uses : losisin/helm-docs-github-action@3a4528e97c49a5e83de6b78c50c61c8ee5c9f944 # v2
8585 with :
8686 chart-search-root : " helm/defectdojo"
8787
@@ -99,14 +99,20 @@ jobs:
9999 with :
100100 github-token : ${{ secrets.GITHUB_TOKEN }}
101101 script : |
102- github.rest.pulls.create({
102+ const pr = await github.rest.pulls.create({
103103 owner: '${{ env.GITHUB_ORG }}',
104104 repo: 'django-DefectDojo',
105105 title: 'Release: Merge back ${{ inputs.release_number_new }} into dev from: ${{ env.NEW_BRANCH }}',
106106 body: `Release triggered by \`${ process.env.GITHUB_ACTOR }\``,
107107 head: '${{ env.NEW_BRANCH }}',
108108 base: 'dev'
109109 })
110+ await github.rest.issues.addLabels({
111+ owner: '${{ env.GITHUB_ORG }}',
112+ repo: 'django-DefectDojo',
113+ issue_number: pr.data.number,
114+ labels: ['release-management']
115+ })
110116
111117 create_pr_for_merge_back_into_bugfix :
112118 runs-on : ubuntu-latest
@@ -157,7 +163,7 @@ jobs:
157163 yq -i '.annotations."artifacthub.io/changes" = ""' helm/defectdojo/Chart.yaml
158164
159165 - name : Run helm-docs
160- uses : losisin/helm-docs-github-action@2ccf3e77eb70dc80d62f8cc26f15d0a96b75fef4 # v1.8.0
166+ uses : losisin/helm-docs-github-action@3a4528e97c49a5e83de6b78c50c61c8ee5c9f944 # v2
161167 with :
162168 chart-search-root : " helm/defectdojo"
163169
@@ -175,11 +181,17 @@ jobs:
175181 with :
176182 github-token : ${{ secrets.GITHUB_TOKEN }}
177183 script : |
178- github.rest.pulls.create({
184+ const pr = await github.rest.pulls.create({
179185 owner: '${{ env.GITHUB_ORG }}',
180186 repo: 'django-DefectDojo',
181187 title: 'Release: Merge back ${{ inputs.release_number_new }} into bugfix from: ${{ env.NEW_BRANCH }}',
182188 body: `Release triggered by \`${ process.env.GITHUB_ACTOR }\``,
183189 head: '${{ env.NEW_BRANCH }}',
184190 base: 'bugfix'
185191 })
192+ await github.rest.issues.addLabels({
193+ owner: '${{ env.GITHUB_ORG }}',
194+ repo: 'django-DefectDojo',
195+ issue_number: pr.data.number,
196+ labels: ['release-management']
197+ })
0 commit comments