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 1b60e41 commit cfabd3c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,17 @@ jobs:
with:
bundler-cache: true

- name: 'Get Previous tag'
id: previoustag
uses: younited/get-previous-tag-action@v1.0.0

- name: Make release
env:
GH_TOKEN: ${{ github.token }}
run: |
bundle config set --local with 'release'
bundle install
mkdir -p build
PTAG=$(git --no-pager tag --list | sort --version-sort | tail -n2 | head -n1)
bundle exec github_changelog_generator \
--user ${{ github.repository_owner }} \
--project "gha-test-repo" \
--since-tag ${{ steps.previoustag.outputs.previous-tag }} \
--since-tag ${PTAG} \
--output build/changelog.md
gh release create ${{ github.ref_name }} --notes-file build/changelog.md --title "Release ${{ github.ref_name }}"

0 comments on commit cfabd3c

Please sign in to comment.