diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..567aeae --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,7 @@ +--- +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly diff --git a/.github/workflows/alias-release.yaml b/.github/workflows/alias-release.yaml new file mode 100644 index 0000000..bf769ba --- /dev/null +++ b/.github/workflows/alias-release.yaml @@ -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 diff --git a/.github/workflows/finalize-release.yaml b/.github/workflows/finalize-release.yaml new file mode 100644 index 0000000..c855024 --- /dev/null +++ b/.github/workflows/finalize-release.yaml @@ -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 diff --git a/.github/workflows/prepare-release.yaml b/.github/workflows/prepare-release.yaml new file mode 100644 index 0000000..0a78ec8 --- /dev/null +++ b/.github/workflows/prepare-release.yaml @@ -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 diff --git a/README.md b/README.md index 7872776..fdf0a75 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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. \ No newline at end of file +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.