name: Generate Release Notes

on:
  push:
    tags:
      - v*

jobs:
  Build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-node@v1
      with:
        node-version: '12.8.x'
    - run: npm install github-release-notes -g
    - name: Write PreRelease Notes
      env:
        GREN_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        GITHUB_EVENT_REF: ${{ github.event.ref }}
      run: |
        tagname="${GITHUB_EVENT_REF/refs\/tags\//}"
        gren release --override -d --tags=$tagname
name: Generate Release Notes

on:
  create:
    tags:
      - v*

jobs:
  Build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-node@v1
      with:
        node-version: '12.8.x'
    - run: npm install github-release-notes -g
    - name: Write PreRelease Notes
      env:
        GREN_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      run: gren release --override -d --tags=${{ github.event.ref }}
Resolve issue with gren when using "on: push" github event
Resolve issue with gren when using "on: push" github event
