Skip to content

Commit ef8332c

Browse files
authored
quote stuff (#32)
1 parent 0bce0e5 commit ef8332c

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,22 @@ jobs:
1818
echo "event_name: ${{ github.event_name }}"
1919
echo "ref: ${{ github.ref }}"
2020
21+
environment=""
22+
url=""
23+
2124
if [[ "${{ github.event_name }}" == 'push' ]]; then
22-
echo "environment=production" >> $GITHUB_OUTPUT
23-
echo "url=https://test-github-features.fly.dev" >> $GITHUB_OUTPUT
25+
environment=production"
26+
url=https://test-github-features.fly.dev"
2427
elif [[ "${{ github.event_name }}" == 'merge_group' ]]; then
25-
echo "environment=staging" >> $GITHUB_OUTPUT
26-
echo "url=https://test-github-features-staging.fly.dev" >> $GITHUB_OUTPUT
28+
environment=staging"
29+
url=https://test-github-features-staging.fly.dev"
2730
elif [[ "${{ github.event_name }}" == 'workflow_dispatch' ]]; then
28-
echo "environment=development" >> $GITHUB_OUTPUT
29-
echo "url=https://test-github-features-staging.fly.dev" >> $GITHUB_OUTPUT
31+
environment=development"
32+
url=https://test-github-features-staging.fly.dev"
3033
fi
3134
32-
echo "environment=\"${{ steps.environment.outputs.environment }}\""
35+
echo "environment=$environment" >> $GITHUB_OUTPUT
36+
echo "url=$url" >> $GITHUB_OUTPUT
3337
deploy:
3438
needs: environment
3539
if: ${{ needs.environment.outputs.environment }}

0 commit comments

Comments
 (0)