Untitled
unknown
plain_text
6 days ago
766 B
9
Indexable
name: Example Workflow on: workflow_call: inputs: OTG: type: boolean default: false required: true ENV: type: string required: true jobs: Deploy: runs-on: ubuntu-latest steps: - name: Set SA run: | if [ "${{ inputs.OTG }}" == "true" ]; then SA="${{ inputs.ENV == 'dev' || inputs.ENV == 'UAT' && fromJson(secrets.ServiceAccount)['dev/deploy'] }}" else SA="${{ inputs.ENV == 'dev' || inputs.ENV == 'UAT' && fromJson(secrets.ServiceAccount)['dev/deploy-sa'] }}" fi echo "SA=$SA" >> $GITHUB_ENV - name: Authenticate uses: google-github-actions/auth@v1 with: service_account: ${{ env.SA }}
Editor is loading...
Leave a Comment