Skip to content

Commit

Permalink
Merge pull request #317 from uclahs-cds/nwiltsie_add_release_workflows
Browse files Browse the repository at this point in the history
Add release management workflows
  • Loading branch information
nwiltsie authored Oct 18, 2024
2 parents 5a7e266 + f737517 commit 55872ee
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ updates:
patterns:
- "*/pipeline-Nextflow-config"
- "*/pipeline-Nextflow-module"
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
19 changes: 19 additions & 0 deletions .github/workflows/alias-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
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: inherit
24 changes: 24 additions & 0 deletions .github/workflows/finalize-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
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
secrets: inherit
with:
draft: false
2 changes: 0 additions & 2 deletions .github/workflows/pipeline-release.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
on:
push:
tags: "v*"
release:
types: [published]

Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/prepare-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
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 }}
secrets: inherit
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# pipeline-call-sSNV

[![GitHub release](https://img.shields.io/github/v/release/uclahs-cds/pipeline-call-sSNV)](https://github.com/uclahs-cds/pipeline-call-sSNV/actions/workflows/prepare-release.yaml)

- [call-sSNV](#pipeline-call-ssnv)
- [Overview](#overview)
- [How To Run](#how-to-run)
Expand Down

0 comments on commit 55872ee

Please sign in to comment.