Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#99] Add workflow to draft the release when the release PR is merged #122

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Draft the release

on:
push:
branches:
- main
- chore/99-add-release-drafter

jobs:
draft_new_release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Get version from the latest commit message
working-directory: scripts
run: |
COMMIT_MESSAGE="${{ github.event.head_commit.message }}"
echo "$COMMIT_MESSAGE"

# - name: Draft release
# uses: release-drafter/release-drafter@v5
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# config-name: release-drafter-config.yml
# version: ${{ env.VERSION }}