Skip to content

Commit 7b08e82

Browse files
authored
Merge pull request #85 from uclahs-cds/nwiltsie-release-management
Add release management workflows
2 parents a519091 + 0904c9a commit 7b08e82

File tree

4 files changed

+83
-0
lines changed

4 files changed

+83
-0
lines changed

.github/workflows/alias-release.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: 🛠️ Update release alias tags
3+
4+
run-name: Update alias for ${{ github.event.action }} ${{ github.event.release.name }}
5+
6+
on:
7+
release:
8+
types:
9+
- published
10+
- deleted
11+
12+
permissions:
13+
actions: read
14+
contents: write
15+
16+
jobs:
17+
update-alias:
18+
uses: uclahs-cds/tool-create-release/.github/workflows/wf-alias-release.yaml@v1
19+
# Secrets are only required until tool-create-release is made public
20+
secrets: inherit
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: 🛠️ Finalize release
3+
4+
run-name: Finalize release from branch `${{ github.event.pull_request.head.ref }}`
5+
6+
on:
7+
pull_request:
8+
branches:
9+
- main
10+
types:
11+
- closed
12+
13+
permissions:
14+
actions: read
15+
contents: write
16+
pull-requests: write
17+
18+
jobs:
19+
finalize-release:
20+
if: ${{ github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'automation-create-release') }}
21+
uses: uclahs-cds/tool-create-release/.github/workflows/wf-finalize-release.yaml@v1
22+
with:
23+
draft: true
24+
# Secrets are only required until tool-create-release is made public
25+
secrets: inherit
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: 📦 Prepare new release
3+
4+
run-name: Open PR for new ${{ inputs.bump_type }} release
5+
6+
on:
7+
workflow_dispatch:
8+
inputs:
9+
bump_type:
10+
type: choice
11+
description: Semantic version bump type
12+
required: true
13+
options:
14+
- major
15+
- minor
16+
- patch
17+
prerelease:
18+
type: boolean
19+
description: Create a prerelease
20+
21+
permissions:
22+
actions: read
23+
contents: write
24+
pull-requests: write
25+
26+
jobs:
27+
prepare-release:
28+
uses: uclahs-cds/tool-create-release/.github/workflows/wf-prepare-release.yaml@v1
29+
with:
30+
bump_type: ${{ inputs.bump_type }}
31+
prerelease: ${{ inputs.prerelease }}
32+
version_files: nextflow.config
33+
# Secrets are only required until tool-create-release is made public
34+
secrets: inherit

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
99

1010
## [Unreleased]
1111

12+
### Added
13+
14+
- Add release management workflows from `tool-create-release`
15+
1216
### [Changed]
1317
- Use `run_validate_PipeVal_with_metadata` to gate on validation
1418
- Move index/dictionary file discovery to configuration stage

0 commit comments

Comments
 (0)