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:
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 }}
You can’t perform that action at this time.
0 commit comments