Skip to content

Commit

Permalink
gh syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
gobengo committed Nov 2, 2023
1 parent 04b35ac commit e16df5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- test
runs-on: ubuntu-latest
environment:
name: ${{ (github.ref_name != 'main') && format('preview-{0}', github.ref_name) || "staging" }}
name: ${{ (github.ref_name == 'main') && 'staging' || format('preview-{0}', github.ref_name) }}
url: ${{ steps.cloudflare_url.outputs.stdout }}
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit e16df5a

Please sign in to comment.