I just want it to run in Matrix for both INT,STG environments, and for each env I need the longer name (integration,staging).
Does this thing possible within github actions? did I miss something in the sytanx? I tried looking around for it and couldn't find it..
Test:
name: Deploy Test
runs-on: ${{matrix.env}}
strategy:
matrix:
env: [int, stg]
needs:
- 'jobA'
- 'jobB'
steps:
- name: Create test things.
env:
ENVIRONMENT: 'if github.runs-on == int; then $ENVIRONMENT=integration else $ENVIRONMENT=staging'
- name: Test
run: |
some command using ${{env.ENVIRONMENT}}
- Desired output is integration
some command using ${{env.ENVIRONMENT}}
- Desired output is staging
Thanks for anyone willing to assist!