From 8860b44715e0fb50671c5479803cc81f86b1d81d Mon Sep 17 00:00:00 2001 From: zernonia Date: Wed, 17 Jan 2024 13:39:33 +0800 Subject: [PATCH] chore: add conditional to the branch naming --- .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 59e439f8..5e7044ae 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: refs/pull/${{ github.event.number }}/merge + branch: ${{ if(github.ref == 'refs/heads/dev', 'dev', refs/pull/${{ github.event.number }}/merge') }} # Optional: Change the working directory workingDirectory: apps/www wranglerVersion: '3'