File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -18,18 +18,22 @@ jobs:
18
18
echo "event_name: ${{ github.event_name }}"
19
19
echo "ref: ${{ github.ref }}"
20
20
21
+ environment=""
22
+ url=""
23
+
21
24
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"
24
27
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"
27
30
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"
30
33
fi
31
34
32
- echo "environment=\"${{ steps.environment.outputs.environment }}\""
35
+ echo "environment=$environment" >> $GITHUB_OUTPUT
36
+ echo "url=$url" >> $GITHUB_OUTPUT
33
37
deploy :
34
38
needs : environment
35
39
if : ${{ needs.environment.outputs.environment }}
You can’t perform that action at this time.
0 commit comments