-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #180 from uclahs-cds/nwiltsie_add_release_workflows
Add release management workflows
- Loading branch information
Showing
6 changed files
with
81 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
--- | ||
on: | ||
push: | ||
tags: "v*" | ||
release: | ||
types: [published] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters