chore: changed dirs #6
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
name: if and context reference | |
on: | |
workflow_dispatch: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
matrix_reference: | |
strategy: | |
matrix: | |
sample: ["hoge", "fuga"] | |
env: | |
APP: hoge | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 3 | |
steps: | |
# env context reference | |
- run: echo "this is env if for hoge" | |
if: ${{ env.APP == matrix.sample }} | |
- run: echo "this is env if for fuga" | |
if: ${{ env.APP == matrix.sample }} | |
# github context reference | |
- run: echo "this is github if event push" | |
if: ${{ github.event_name == 'push' }} | |
# matrix context reference | |
- run: echo "this is matrix if for hoge" | |
if: ${{ matrix.sample == 'hoge' }} | |
- run: echo "this is matrix if for fuga" | |
if: ${{ matrix.sample == 'fuga' }} |