From 294bac32071f936e677bc4224b71ae5257975c99 Mon Sep 17 00:00:00 2001 From: Ross Younger Date: Sat, 2 Nov 2024 21:53:28 +1300 Subject: [PATCH] build: fix release workflow syntax --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f4be901..84c174d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: env: CARGO_TERM_COLOR: always - WORKFLOW_TEST: GITHUB_EVENT_NAME == 'workflow_dispatch' + WORKFLOW_TEST: ${{ github.event_name == 'workflow_dispatch' }} permissions: contents: write @@ -58,7 +58,7 @@ jobs: leading-dir: true tar: unix zip: windows - dry_run: ! ${{ env.WORKFLOW_TEST }} + dry_run: ${{ env.WORKFLOW_TEST }} - name: Make deb package if: ${{ matrix.build_deb }} run: scripts/make-debian-package --release ${{ matrix.target }} @@ -74,7 +74,7 @@ jobs: name: qcp-deb-${{ matrix.target }} path: target/**/debian/qcp*.deb - name: Publish deb package to release - if: ! ${{ env.WORKFLOW_TEST }} + if: ${{ ! env.WORKFLOW_TEST }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: gh release upload ${{ github.ref }} ${{ env.BUILT_DEB_FILE }}