From ff4ab7e4515c203d5131d96d72d5955e2d13b4e6 Mon Sep 17 00:00:00 2001 From: Justin Rubek <25621857+justinrubek@users.noreply.github.com> Date: Sun, 19 May 2024 20:09:47 -0500 Subject: [PATCH] ci(github/actions): simply tag logic --- .github/workflows/tag.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index e041a59..ae41c4f 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -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 }}