Skip to content

Commit 8491260

Browse files
author
Arthur Silva Sens
authored
Merge pull request #1526 from prometheus/changelog-automation
ci: Group all changelog-related CI jobs into single one
2 parents 57abe22 + 0f23008 commit 8491260

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/pr-auto-label.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: PR-auto-labeler
2+
name: Changelog automation
33

44
on:
55
pull_request_target:
@@ -12,11 +12,12 @@ permissions:
1212
checks: write # to generate status
1313

1414
jobs:
15-
remove-old-labels:
16-
name: Remove old PR labels
15+
changelog-automation:
16+
name: Changelog automation
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: mondeja/[email protected]
19+
- name: Remove old PR labels
20+
uses: mondeja/[email protected]
2021
with:
2122
token: ${{ secrets.GITHUB_TOKEN }}
2223
labels: |
@@ -25,21 +26,13 @@ jobs:
2526
kind/FEATURE
2627
kind/CHANGE
2728
release-note-none
28-
pr-labeler:
29-
runs-on: ubuntu-latest
30-
needs: remove-old-labels
31-
steps:
32-
- name: Check Labels
29+
- name: Add label to PR
3330
id: labeler
3431
uses: jimschubert/labeler-action@v1
3532
with:
3633
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3734
# Adjust the configuration in /.github/labeler.yml
3835

39-
validate-pr-label:
40-
runs-on: ubuntu-latest
41-
needs: pr-labeler
42-
steps:
4336
- name: Verify Label
4437
id: preview_label_check
4538
uses: docker://agilepathway/pull-request-label-checker:latest
@@ -52,7 +45,7 @@ jobs:
5245
if: steps.preview_label_check.outputs.label_check == 'failure'
5346
with:
5447
message: |
55-
PR body does not contain a valid type of change. Please refer to [CONTRIBUTING.md](https://github.com/prometheus/client_golang/blob/main/CONTRIBUTING.md#how-to-fill-the-pr-template) for more information.
48+
PR body does not contain a valid type of change. Please refer to [CONTRIBUTING.md](https://github.com/prometheus/client_golang/blob/main/CONTRIBUTING.md#how-to-write-a-pr-description) for more information.
5649
comment_tag: labelfailure
5750
mode: recreate
5851
- name: Remove Label Check Failure Comment

0 commit comments

Comments
 (0)