Skip to content

Commit 7b0a5e4

Browse files
committed
fix: update GitHub workflows to allow manual triggering and improve branch checks
1 parent 2b9881e commit 7b0a5e4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy_preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
build-and-deploy:
13-
if: github.ref == 'refs/heads/main'
13+
if: github.ref_name == 'main' || github.event_name == 'workflow_dispatch'
1414
runs-on: ubuntu-latest
1515
permissions:
1616
contents: read

.github/workflows/deploy_prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
build-and-deploy:
13-
if: github.ref == 'refs/heads/prod'
13+
if: github.ref_name == 'prod' || github.event_name == 'workflow_dispatch'
1414
runs-on: ubuntu-latest
1515
permissions:
1616
contents: read

0 commit comments

Comments
 (0)