Skip to content

Commit fd2e9f9

Browse files
authored
Merge pull request #16 from rockstaedt/15-update-release-workflow-to-remove-wip-label
Add step to release workflow to remove WIP label
2 parents 5bb66d6 + c752741 commit fd2e9f9

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- closed
66

77
jobs:
8-
semantic-version:
8+
preparation:
99
if: github.event.pull_request.merged
1010
name: Get next version numbers
1111
runs-on: ubuntu-latest
@@ -14,6 +14,14 @@ jobs:
1414
uses: actions/checkout@v3
1515
with:
1616
fetch-depth: 0
17+
- name: Remove WIP label from linked issue
18+
uses: RebeccaStevens/issue-closed-labeler-action@latest
19+
with:
20+
rules: '[{"condition": "WIP", "remove": "WIP"}]'
21+
- name: Remove WIP label from PR
22+
uses: actions-ecosystem/action-remove-labels@v1
23+
with:
24+
labels: WIP
1725
- name: Get previous tag
1826
id: previous_tag
1927
uses: "WyriHaximus/github-action-get-previous-tag@v1"
@@ -30,17 +38,17 @@ jobs:
3038

3139
determine-release:
3240
name: Release type
33-
needs: semantic-version
41+
needs: preparation
3442
runs-on: ubuntu-latest
3543
continue-on-error: true
3644
strategy:
3745
matrix:
3846
labels: ["bug,patch", "feature,minor"]
3947
include:
4048
- labels: "bug,patch"
41-
version: "${{ needs.semantic-version.outputs.v_patch }}"
49+
version: "${{ needs.preparation.outputs.v_patch }}"
4250
- labels: "feature,minor"
43-
version: "${{ needs.semantic-version.outputs.v_minor }}"
51+
version: "${{ needs.preparation.outputs.v_minor }}"
4452
steps:
4553
- name: Check labels
4654
uses: docker://agilepathway/pull-request-label-checker:latest

0 commit comments

Comments
 (0)