Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add release management workflows #85

Merged
merged 3 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
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
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
Comment on lines +19 to +20
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question (non-blocking): Can these be removed now that tool-create-release is public?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll have to see - since I originally added that comment I started using our secret token to create the releases, so I'll have to play with it. I'll figure it out in the next few days and either remove the use of secrets or the comment saying that it's temporary.

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