From 12933de42b6189b7241060a510b8c7d5674262e2 Mon Sep 17 00:00:00 2001 From: sevenautumns Date: Sat, 25 Feb 2023 13:35:16 +0100 Subject: [PATCH] release action smaller if --- .github/workflows/nix.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nix.yaml b/.github/workflows/nix.yaml index 4f71b571..4d5e6d5a 100644 --- a/.github/workflows/nix.yaml +++ b/.github/workflows/nix.yaml @@ -5,7 +5,7 @@ on: pull_request: push: branches: [main] - tags: ['v*'] + tags: ["v*"] jobs: build: @@ -59,7 +59,7 @@ jobs: path: ${{ matrix.derivation }}-${{ matrix.nix-system }} - name: Release uses: softprops/action-gh-release@v1 - if: github.ref_type == 'tag' && startsWith(github.ref_name, 'v') && contains(matrix.derivation, 'static') + if: startsWith(github.ref, 'refs/tags/v') && contains(matrix.derivation, 'static') with: files: | ${{ matrix.derivation }}-${{ matrix.nix-system }}