Skip to content

Commit

Permalink
Merge pull request #85 from uclahs-cds/nwiltsie-release-management
Browse files Browse the repository at this point in the history
Add release management workflows
  • Loading branch information
nwiltsie authored Oct 8, 2024
2 parents a519091 + 0904c9a commit 7b08e82
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/alias-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: 🛠️ Update release alias tags

run-name: Update alias for ${{ github.event.action }} ${{ github.event.release.name }}

on:
release:
types:
- published
- deleted

permissions:
actions: read
contents: write

jobs:
update-alias:
uses: uclahs-cds/tool-create-release/.github/workflows/wf-alias-release.yaml@v1
# Secrets are only required until tool-create-release is made public
secrets: inherit
25 changes: 25 additions & 0 deletions .github/workflows/finalize-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: 🛠️ Finalize release

run-name: Finalize release from branch `${{ github.event.pull_request.head.ref }}`

on:
pull_request:
branches:
- main
types:
- closed

permissions:
actions: read
contents: write
pull-requests: write

jobs:
finalize-release:
if: ${{ github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'automation-create-release') }}
uses: uclahs-cds/tool-create-release/.github/workflows/wf-finalize-release.yaml@v1
with:
draft: true
# Secrets are only required until tool-create-release is made public
secrets: inherit
34 changes: 34 additions & 0 deletions .github/workflows/prepare-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: 📦 Prepare new release

run-name: Open PR for new ${{ inputs.bump_type }} release

on:
workflow_dispatch:
inputs:
bump_type:
type: choice
description: Semantic version bump type
required: true
options:
- major
- minor
- patch
prerelease:
type: boolean
description: Create a prerelease

permissions:
actions: read
contents: write
pull-requests: write

jobs:
prepare-release:
uses: uclahs-cds/tool-create-release/.github/workflows/wf-prepare-release.yaml@v1
with:
bump_type: ${{ inputs.bump_type }}
prerelease: ${{ inputs.prerelease }}
version_files: nextflow.config
# Secrets are only required until tool-create-release is made public
secrets: inherit
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## [Unreleased]

### Added

- Add release management workflows from `tool-create-release`

### [Changed]
- Use `run_validate_PipeVal_with_metadata` to gate on validation
- Move index/dictionary file discovery to configuration stage
Expand Down

0 comments on commit 7b08e82

Please sign in to comment.