From 98643df9368affe7baddbcec7eaf2621c9b44ec7 Mon Sep 17 00:00:00 2001 From: Pranav C <61551451+pranavxc@users.noreply.github.com> Date: Tue, 13 Jul 2021 16:05:10 +0530 Subject: [PATCH] chore(github-action): release draft generator --- .github/workflows/blank.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/blank.yml diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 0000000000..8b4c3ba4f2 --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1,32 @@ + +name: Release Draft Generator + +on: + workflow_dispatch: + inputs: + tag: + description: "Tag" + required: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Create tag + uses: actions/github-script@v3 + with: + github-token: ${{ secrets.GH_TOKEN }} + script: | + github.git.createRef({ + owner: context.repo.owner, + repo: context.repo.repo, + ref: "refs/tags/${{ github.event.inputs.tag }}", + sha: context.sha + }) + + - uses: actions/setup-node@v2 + with: + node-version: 14 + - run: "npx github-release-notes release --token ${{ secrets.GH_TOKEN }} --draft --tags ${{ github.event.inputs.tag }}"