diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 18078dd..0dd106f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -12,3 +12,7 @@ updates: patterns: - "*/pipeline-Nextflow-config" - "*/pipeline-Nextflow-module" + - 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/pipeline-release.yaml b/.github/workflows/pipeline-release.yaml index b2a0110..4eabbb3 100644 --- a/.github/workflows/pipeline-release.yaml +++ b/.github/workflows/pipeline-release.yaml @@ -1,7 +1,5 @@ --- on: - push: - tags: "v*" release: types: [published] 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 60890a8..45e664b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # call-gSV +[![GitHub release](https://img.shields.io/github/v/release/uclahs-cds/pipeline-call-gSV)](https://github.com/uclahs-cds/pipeline-call-gSV/actions/workflows/prepare-release.yaml) + - [Overview](#overview) - [How To Run](#how-to-run) - [Flow Diagram](#flow-diagram)