Skip to content

Commit

Permalink
get tag
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaffen committed Feb 6, 2024
1 parent 09b22d4 commit cba531b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,19 @@ jobs:
with:
bundler-cache: true

- name: Prep environment
- name: Prep Environment
run: |
bundle config set --local with 'release'
bundle install
mkdir -p build
- name: Gen changelog
- uses: younited/[email protected]
id: get-previous-tag

- name: Generate Changelog
env:
GH_TOKEN: ${{ github.token }}
run: |
PTAG=$(git describe --abbrev=0 --tags --exclude="$(git describe --abbrev=0 --tags)")
bundle exec github_changelog_generator --user ${{ github.repository_owner }} --project "gha-test-repo" --since-tag ${PTAG} --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 cba531b

Please sign in to comment.