Skip to content

Commit

Permalink
Add automated release notes (#13)
Browse files Browse the repository at this point in the history
* Create release.yml

* Update on-commit.yml

* Update on-commit.yml

* Update on-commit.yml

* Update release.yml

* Update on-commit.yml

* Update CI

* Enable autolabeler

* Update on-commit.yml

* Update on-commit.yml

* Merge branch 'main' into automated-release-notes
  • Loading branch information
Kseen715 authored Sep 21, 2024
1 parent 6246c9e commit 92e2b2e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/on-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,15 @@ on:
pull_request:
branches:
- main
types: [opened, synchronize, reopened]
workflow_dispatch:

env:
TAG_VERSION: v0.0.0
PREVIOUS_TAG: 0.0.0
LATEST_TAG: 0.0.0
TOML_VERSION: 0.0.0

jobs:
fetch-commit-message:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -52,3 +59,31 @@ jobs:
sudo apt-get install -y codespell
- name: Run Spellchecker
run: codespell --skip "./frontend/yarn.lock"

update-release-draft:
needs: spellcheck
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
# (Optional) GitHub Enterprise requires GHE_HOST variable set
#- name: Set GHE_HOST
# run: |
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV

# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v6
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
with:
config-name: release.yml
publish: true
# disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}



0 comments on commit 92e2b2e

Please sign in to comment.