Files
nocodb/.github/workflows/release-draft.yml
Pranav C cc5e0df538 chore(actions): Modify action names
Signed-off-by: Pranav C <pranavxc@gmail.com>
2021-08-21 12:58:09 +05:30

37 lines
952 B
YAML

name: "Release : Draft Notes"
on:
workflow_dispatch:
inputs:
tag:
description: "Tag"
required: true
prev_tag:
description: "Previous Tag"
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- 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/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 14
- run: "npx github-release-notes@0.17.2 release --token ${{ secrets.GH_TOKEN }} --draft --tags ${{ github.event.inputs.tag }}..${{ github.event.inputs.prev_tag }}"