Skip to content

Commit

Permalink
get ptag
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaffen committed Feb 6, 2024
1 parent cba531b commit 0b70126
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@ jobs:
bundle install
mkdir -p build
- uses: younited/get-previous-tag-action@v1.0.0
- name: Get previous Tag
id: get-previous-tag
run: |
EXCLUDES=$(git describe --abbrev=0 --tags)
PTAG=$(git describe --abbrev=0 --tags --exclude="${EXCLUDES}")
echo "previous_tag=${PTAG}" >> "$GITHUB_OUTPUT"
- name: Generate Changelog
env:
GH_TOKEN: ${{ github.token }}
run: bundle exec github_changelog_generator --user ${{ github.repository_owner }} --project "gha-test-repo" --since-tag ${{ steps.get-previous-tag.outputs.previous-tag }} --future-release ${{ github.ref_name }} --output build/changelog.md
run: bundle exec github_changelog_generator --user ${{ github.repository_owner }} --project "gha-test-repo" --since-tag ${{ steps.get-previous-tag.outputs.previous_tag }} --future-release ${{ github.ref_name }} --output build/changelog.md

- name: Create Release
env:
Expand Down

0 comments on commit 0b70126

Please sign in to comment.