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 #6

Merged
merged 3 commits into from
Oct 18, 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
7 changes: 7 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
version: 2
updates:
- 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
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
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# PlantUML GitHub Action

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

This repository is a GitHub Action that generates UML diagrams (as SVGs) from PlantUML files.

## How to use this action in your repository
Expand Down Expand Up @@ -164,4 +166,4 @@ Copyright (C) 2021 University of California Los Angeles ("Boutros Lab") All righ

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.