Skip to content

Commit

Permalink
add workflow for drafting release (#80)
Browse files Browse the repository at this point in the history
* add workflow for drafting release

* add template for release draft

* remove unneeded job from workflow
  • Loading branch information
vpchung authored Mar 5, 2024
1 parent 62518dc commit 2b481d4
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/release-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
change-template: '- $TITLE (#$NUMBER)'
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
exclude-labels:
- 'non-release'
template: |
## What's Changed
$CHANGES
## Contributors
$CONTRIBUTORS
23 changes: 23 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Draft a new data model release

on:
workflow_run:
workflows: [ Check if PR has requird labels ]
types: [ completed ]

jobs:
create-update-draft:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
permissions:
contents: write
pull-requests: read
steps:
- name: Create or update a release draft
uses: release-drafter/release-drafter@v6.0.0
with:
config-name: release-template.yml
disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2b481d4

Please sign in to comment.