| name: 'Changelog Build (Release)' |
|
|
| on: |
| push: |
| tags: |
| - '*' |
|
|
| jobs: |
| changelog: |
| if: startsWith(github.ref, 'refs/tags/') |
| runs-on: ubuntu-latest |
| steps: |
| - uses: actions/checkout@v2 |
| with: |
| fetch-depth: 0 |
|
|
| - name: Get Previous tag |
| id: previous_tag |
| |
| |
| |
| run: | |
| echo "::set-output name=tag_name::$(git for-each-ref --sort=-creatordate --format '%(refname)' refs/tags | awk 'FNR == 2 {print substr($1, 11, length($1))}')" |
| echo ${{ steps.previous_tag.outputs.tag_name }} |
| |
| - name: Build Changelog |
| id: github_tag |
| uses: mikepenz/release-changelog-builder-action@v3.3.1 |
| env: |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| with: |
| |
| |
| |
| |
| configuration: ".github/workflows/config/changelog-config.json" |
| owner: "NVIDIA" |
| repo: "NeMo" |
| ignorePreReleases: "false" |
| failOnError: "false" |
| fromTag: ${{ steps.previous_tag.outputs.tag_name }} |
| toTag: ${{ github.ref_name }} |
|
|
| - name: Print Changelog |
| run: | |
| echo "${{steps.github_tag.outputs.changelog}}" |
| echo "--- DONE ---" |
| |