Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.

steps.Changelog.outputs.changelog has the commit messages from the previous release. #21

Closed
ethznn opened this issue Mar 11, 2021 · 1 comment · Fixed by #22
Closed
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@ethznn
Copy link

ethznn commented Mar 11, 2021

Hello

I thought it was a comfortable action, so I tested it to try it out.
I use it as follows, but it works by including the commit message of the last release each time a new release is made.

Could you please let me know if I am using it wrong?

workflow yml code

on:
  push:
    branches: [ master ]
    
env:
  VERSION: '0.3.12'

jobs:
  build:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest
    timeout-minutes: 30
    
    ...
    
    - name: Checkout master branch
      uses: actions/checkout@v2
      with:
        fetch-depth: 0
        
    - name: Check changelog
      uses: scottbrenner/generate-changelog-action@master
      id: changelog

    - name: Create Release
      id: create-release
      uses: actions/create-release@latest
      env:
        GITHUB_TOKEN: ${{ secrets.TOKEN }}
      with:
        tag_name: ${{ env.VERSION }}
        release_name: Release ${{ env.VERSION }}
        body: |
          ${{ steps.changelog.outputs.changelog }}
        draft: false
        prerelease: false  
    
    ...
    

image

@ethznn ethznn changed the title steps.Changelog.outputs.changelog has the last commit message from the previous release. steps.Changelog.outputs.changelog has the commit messages from the previous release. Mar 11, 2021
@ScottBrenner ScottBrenner added bug Something isn't working help wanted Extra attention is needed labels Mar 14, 2021
@ethznn
Copy link
Author

ethznn commented Mar 14, 2021

@ScottBrenner Thank you for checking quickly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
2 participants