Skip to content

Commit

Permalink
Merge pull request #2 from uclahs-cds/nwiltsie-dogfood
Browse files Browse the repository at this point in the history
Manage releases with this repo
  • Loading branch information
nwiltsie authored Aug 5, 2024
2 parents 7c83849 + 62af271 commit 8489331
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/internal-finalize.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Finalize release

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: ./.github/workflows/wf-finalize-release.yaml
secrets: inherit
with:
draft: true
31 changes: 31 additions & 0 deletions .github/workflows/internal-prepare.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
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

permissions:
actions: read
contents: write
pull-requests: write

jobs:
prepare-release:
uses: ./.github/workflows/wf-prepare-release.yaml
with:
bump_type: ${{ inputs.bump_type }}
exact_version: ''
secrets: inherit
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
*.rd[as]

# Python
._version.py
junit/
.tox/
_version.py
__pycache__/
.pytest_cache/
.Python
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

- Workflow to update CHANGELOG and open pre-release PRs
- Workflow to create/draft releases after pre-release PR merge
- "Dogfood" workflows to self-manage this repository's releases

0 comments on commit 8489331

Please sign in to comment.