From 023ab04e949d90edb0ea3f1e80d812b30a126217 Mon Sep 17 00:00:00 2001 From: Hien To Date: Thu, 25 Jan 2024 15:42:54 +0700 Subject: [PATCH] Correct bash script syntax in ci --- .github/workflows/jan-electron-build-nightly.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/jan-electron-build-nightly.yml b/.github/workflows/jan-electron-build-nightly.yml index 9234e22c1..4531152d4 100644 --- a/.github/workflows/jan-electron-build-nightly.yml +++ b/.github/workflows/jan-electron-build-nightly.yml @@ -29,14 +29,14 @@ jobs: - name: Set public provider id: set-public-provider run: | - if [ ${{ github.event == 'workflow_dispatch' }} ]; then + if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then echo "::set-output name=public_provider::${{ github.event.inputs.public_provider }}" echo "::set-output name=ref::${{ github.ref }}" else - if [ ${{ github.event_name == 'schedule' }} ]; then + if [ "${{ github.event_name }}" == "schedule" ]; then echo "::set-output name=public_provider::cloudflare-r2" echo "::set-output name=ref::refs/heads/dev" - else if [ ${{ github.event_name == 'push' }} ]; then + elif [ "${{ github.event_name }}" == "push" ]; then echo "::set-output name=public_provider::cloudflare-r2" echo "::set-output name=ref::${{ github.ref }}" else