Skip to content

Commit

Permalink
no set-output in CI + use ubuntu-latest in cap deploy
Browse files Browse the repository at this point in the history
Addresses: #1312
Addresses: #1301

Co-authored-by: Prashant <[email protected]>
Co-authored-by: Er. Ajay Shrestha <[email protected]>
  • Loading branch information
3 people authored Jan 11, 2023
1 parent 7c50d87 commit 7a96ba3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
outputs:
github_envs: ${{ steps.branch_check.outputs.github_envs }}
deploy_env: ${{ steps.branch_check.outputs.deploy_env }}
steps:
- name: Choose Environment
id: branch_check
Expand All @@ -15,19 +18,16 @@ jobs:
ENV_ARRAY="${{secrets.CLIENT_ENVS}}"
ENV_ARRAY="${ENV_ARRAY//, /,}"
ENV_ARRAY="${ENV_ARRAY//,/\",\"}"
echo "::set-output name=github_envs::{\"value\":[\"${ENV_ARRAY}\"]}"
echo "::set-output name=deploy_env::production"
echo "github_envs={\"value\":[\"${ENV_ARRAY}\"]}" >> $GITHUB_OUTPUT
echo "deploy_env=production" >> $GITHUB_OUTPUT
elif [ "${{ github.ref }}" = "refs/heads/rc" ]; then
echo "::set-output name=github_envs::{\"value\":['staging']}"
echo "::set-output name=deploy_env::staging"
echo "github_envs={\"value\":['staging']}" >> $GITHUB_OUTPUT
echo "deploy_env=staging" >> $GITHUB_OUTPUT
fi
outputs:
github_envs: ${{ steps.branch_check.outputs.github_envs }}
deploy_env: ${{ steps.branch_check.outputs.deploy_env }}
deploy:
needs: build
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
matrix: ${{fromJSON(needs.build.outputs.github_envs)}}
fail-fast: false
Expand Down

0 comments on commit 7a96ba3

Please sign in to comment.