Skip to content

Commit

Permalink
ci(github/actions): simply tag logic
Browse files Browse the repository at this point in the history
  • Loading branch information
justinrubek committed May 20, 2024
1 parent f5640ac commit ff4ab7e
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,23 @@ jobs:
contents: write
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install nix
uses: cachix/install-nix-action@v15
uses: cachix/install-nix-action@v27
with:
extra_nix_config: |
access-tokens = github=${{ secrets.GITHUB_TOKEN }}
extra-substituters = https://cache.garnix.io
extra-trusted-public-keys = cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=
- name: get version
id: get-version
run: |
VERSION=`git describe --tags $(git rev-list --tags --max-count=1)`
echo "version=${VERSION}" >> ${GITHUB_OUTPUT}
- name: generate changelog
env:
VERSION: ${{ steps.get-version.outputs.version }}
VERSION: ${{ github.ref_name }}
run: |
nix run .#bomper -- changelog --at $VERSION > GITHUB_CHANGELOG.md
nix develop .#ci -c -- bomp changelog --at ${VERSION} > GITHUB_CHANGELOG.md
- name: generate release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
body_path: GITHUB_CHANGELOG.md
tag_name: ${{ steps.get-version.outputs.version }}
Expand Down

0 comments on commit ff4ab7e

Please sign in to comment.