[bitnami/**] Bump and changing origin for labeler action to fmulero/labeler@1.0.5 (#10516)

* Bump and changing origin for labeler action to fmulero/labeler@1.0.5

Signed-off-by: Alejandro Gómez <morona@vmware.com>

* Replacing script because of the 1.0.5 version includes the funcionality

Signed-off-by: Alejandro Gómez <morona@vmware.com>

Signed-off-by: Alejandro Gómez <morona@vmware.com>
This commit is contained in:
Alejandro Gómez Morón 2022-10-18 17:08:04 +02:00 committed by GitHub
parent 2673bc5416
commit b437186f9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 24 deletions

View File

@ -42,6 +42,6 @@ jobs:
}
- name: Labeling
if: ${{ steps.get-asset.outputs.result == 'ok' }}
uses: andymckay/labeler@1.0.4
uses: fmulero/labeler@1.0.5
with:
add-labels: "${{ steps.get-asset.outputs.name }}"

View File

@ -57,56 +57,43 @@ jobs:
- name: Triage labeling
# Only if moved into triage
if: ${{ github.event.project_card.column_id == env.TRIAGE_COLUMN_ID }}
uses: andymckay/labeler@1.0.4
uses: fmulero/labeler@1.0.5
with:
add-labels: triage
remove-labels: on-hold, in-progress, solved
- name: From Bitnami labeling
if: ${{ github.event.project_card.column_id == env.BITNAMI_COLUMN_ID }}
uses: andymckay/labeler@1.0.4
uses: fmulero/labeler@1.0.5
with:
add-labels: ${{ (needs.get-issue.outputs.author == 'bitnami-bot' && needs.get-issue.outputs.type == 'pull_request') && 'automated, auto-merge' || 'bitnami' }}
remove-labels: on-hold, in-progress, triage, solved
- name: Verify labeling
# Only if moved into bitnami column and the PR is ready for review
# This step uses a github-script to add the label intentionally.
# Consecutive calls to andymckay/labeler@1.0.4 can remove previous assigned labels, see https://github.com/andymckay/labeler/issues/40
# Consecutive calls were fixed in fmulero/labeler@1.0.5, see https://github.com/fmulero/labeler/pull/2
if: |
github.event.project_card.column_id == env.BITNAMI_COLUMN_ID &&
needs.get-issue.outputs.type == 'pull_request' && needs.get-issue.outputs.draft == 'false'
uses: actions/github-script@v6
uses: fmulero/labeler@1.0.5
with:
# Required to trigger CI workflow
github-token: ${{ secrets.BITNAMI_BOT_TOKEN }}
script: |
try {
await github.rest.issues.addLabels({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
issue_number: ${{ needs.get-issue.outputs.number }},
labels: ['verify']
})
core.info(`Updated labels in ${{ needs.get-issue.outputs.number }}. Added: 'verify'`)
} catch (error) {
core.setFailed(error.message)
}
repo-token: ${{ secrets.BITNAMI_BOT_TOKEN }}
add-labels: verify
- name: Build Maintenance labeling
if: ${{ github.event.project_card.column_id == env.BUILD_MAINTENANCE_COLUMN_ID }}
uses: andymckay/labeler@1.0.4
uses: fmulero/labeler@1.0.5
with:
add-labels: review-required
remove-labels: auto-merge
- name: On hold labeling
# Only if moved into on hold
if: ${{ github.event.project_card.column_id == env.ON_HOLD_COLUMN_ID }}
uses: andymckay/labeler@1.0.4
uses: fmulero/labeler@1.0.5
with:
add-labels: on-hold
remove-labels: triage, in-progress, solved
- name: In progress labeling
# Only if moved into In progress
if: ${{ github.event.project_card.column_id == env.IN_PROGRESS_COLUMN_ID }}
uses: andymckay/labeler@1.0.4
uses: fmulero/labeler@1.0.5
with:
add-labels: in-progress
remove-labels: on-hold, triage, solved
@ -115,7 +102,7 @@ jobs:
if: |
github.event.project_card.column_id == env.SOLVED_COLUMN_ID &&
(needs.get-issue.outputs.author != 'bitnami-bot')
uses: andymckay/labeler@1.0.4
uses: fmulero/labeler@1.0.5
with:
add-labels: solved
# Triage is not on the list to know how many issues/PRs are solved