Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- closed

jobs:
semantic-version:
preparation:
if: github.event.pull_request.merged
name: Get next version numbers
runs-on: ubuntu-latest
Expand All @@ -14,6 +14,14 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Remove WIP label from linked issue
uses: RebeccaStevens/issue-closed-labeler-action@latest
with:
rules: '[{"condition": "WIP", "remove": "WIP"}]'
- name: Remove WIP label from PR
uses: actions-ecosystem/action-remove-labels@v1
with:
labels: WIP
- name: Get previous tag
id: previous_tag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
Expand All @@ -30,17 +38,17 @@ jobs:

determine-release:
name: Release type
needs: semantic-version
needs: preparation
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
labels: ["bug,patch", "feature,minor"]
include:
- labels: "bug,patch"
version: "${{ needs.semantic-version.outputs.v_patch }}"
version: "${{ needs.preparation.outputs.v_patch }}"
- labels: "feature,minor"
version: "${{ needs.semantic-version.outputs.v_minor }}"
version: "${{ needs.preparation.outputs.v_minor }}"
steps:
- name: Check labels
uses: docker://agilepathway/pull-request-label-checker:latest
Expand Down