chore(deps): update dependency awscli to v1.29.52 #131
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. execute for dev and prod when merged to main | |
# 2. execute for dev only when pull_request | |
name: matrix-by-condition | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
# env: ❌ env cannot be used in matrix | |
# ENVS: ${{ github.event_name == 'pull_request' && '["dev"]' || '["dev", "prod"]' }} | |
jobs: | |
execute: | |
strategy: | |
matrix: | |
# env: ${{ fromJson(env.ENVS) }} # ❌ env cannot be used in matrix | |
# env: ${{ fromJson('["dev"]') || fromJson('["dev", "prod"]') }} # ⭕ | |
env: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main' ) && fromJson('["dev", "prod"]') || fromJson('["dev"]') }} | |
runs-on: ubuntu-latest | |
steps: | |
- run: | | |
echo "matrix: ${{ matrix.env }}" |