From fdded6b2547a526d0e9cc96ee19b5b503b5511d5 Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Fri, 11 Oct 2024 14:56:09 -0300 Subject: [PATCH] ci: fix release workflow --- .github/workflows/release.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d0c76b7..efd3326 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -58,6 +58,7 @@ jobs: if-no-files-found: error release: + runs-on: ubuntu-latest needs: - init - build @@ -66,13 +67,12 @@ jobs: with: name: emqx_data_converter - name: rename executable - run: mv emqx_data_converter emqx_data_converter-ubuntu${{ inputs.init.outputs.UBUNTU_VSN }} + run: mv emqx_data_converter emqx_data_converter-ubuntu${{ needs.init.outputs.UBUNTU_VSN }} - name: Create Release - if: github.event_name == 'tag' uses: softprops/action-gh-release@v2.0.8 with: name: emqx-data-converter ${{ github.ref_name }} body: emqx-data-converter ${{ github.ref_name }} files: emqx_data_converter-* - draft: false - prerelease: false + draft: ${{ github.event_name != 'tag' }} + prerelease: ${{ github.event_name != 'tag' }}