Skip to content

get tag

get tag #11

Workflow file for this run

---
on:
push:
tags:
- '*'
name: Release 🚀
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- 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 ${PTAG} \
--output build/changelog.md
gh release create ${{ github.ref_name }} --notes-file build/changelog.md --title "Release ${{ github.ref_name }}"