From 1459a63cd4432b02db6dd3120c6bc97920a64051 Mon Sep 17 00:00:00 2001 From: Carryall Date: Fri, 19 Aug 2022 17:49:52 +0700 Subject: [PATCH] [#99] Add the workflow --- .github/workflows/draft-release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/draft-release.yml diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml new file mode 100644 index 0000000..ff19584 --- /dev/null +++ b/.github/workflows/draft-release.yml @@ -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 }}