From 18fafd7c953dbe57bedd6200592d04fa3a3b3cf6 Mon Sep 17 00:00:00 2001 From: zernonia Date: Wed, 17 Jan 2024 13:45:37 +0800 Subject: [PATCH] fix: github action error --- .github/workflows/publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 5e7044ae..2e0fce7d 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -99,7 +99,7 @@ jobs: gitHubToken: ${{ secrets.GITHUB_TOKEN }} # Optional: Switch what branch you are publishing to. # By default this will be the branch which triggered this workflow - branch: ${{ if(github.ref == 'refs/heads/dev', 'dev', refs/pull/${{ github.event.number }}/merge') }} + branch: ${{ if eq(github.ref, 'refs/heads/dev') }}dev{{ else }}refs/pull/${{ github.event.number }}/merge{{ endif }} # Optional: Change the working directory workingDirectory: apps/www wranglerVersion: '3'