Skip to content

Commit

Permalink
workflow dispatch manually
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoperra committed Oct 31, 2024
1 parent 9162a56 commit 8194e13
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@ on:
branches:
- main
- appwrite
workflow_dispatch:
inputs:
env:
type: choice
options:
- main
- appwrite

jobs:
build:
environment: ${{github.ref_name == 'main' && 'production' || (github.ref_name == 'appwrite' && 'appwrite' || 0)}}
environment: ${{((inputs.env == 'main' || github.ref_name == 'main') && 'production') || ((inputs.env == 'appwrite' || github.ref_name == 'appwrite') && 'appwrite' || 0)}}
runs-on: ubuntu-latest
steps:
- name: Checkout PR
Expand Down

0 comments on commit 8194e13

Please sign in to comment.