Skip to content

Commit 55ea786

Browse files
committed
Improve checking branch
1 parent f70453e commit 55ea786

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/deploy-cloudflare-pages.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ jobs:
3434
- name: Set Cloudflare Pages branch
3535
id: cf
3636
run: |
37-
if [[ "${{ github.ref_type }}" == "tag" ]] || [[ "$GITHUB_REF_NAME" == "main" ]]; then
37+
if [ "${{ github.ref_type }}" == "tag" ] || [ "$GITHUB_REF_NAME" == "main" ]; then
38+
echo "Main site"
3839
echo "branch=main" >> "$GITHUB_OUTPUT"
3940
else
41+
echo "Dev site"
4042
echo "branch=development" >> "$GITHUB_OUTPUT"
4143
fi
4244

0 commit comments

Comments
 (0)