Update basic usage example #1
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
name: '⏱️ Quickstart' | |
on: | |
push: | |
schedule: | |
- cron: '0 6 * * *' | |
workflow_dispatch: | |
# This is action integration test and quickstart example at the same time. | |
jobs: | |
# Setup matrix | |
setup-matrix: | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.setup-matrix.outputs.matrix }} | |
steps: | |
- id: setup-matrix | |
uses: druzsan/setup-matrix@feature/use-python-dockerfile | |
with: | |
matrix: | | |
fruit: [apple, pear] | |
animal: [quick red fox, lazy dog] | |
include: | |
- color: green | |
- color: pink | |
animal: quick red fox | |
- color: brown | |
animal: cat | |
exclude: | |
- fruit: apple | |
animal: lazy dog | |
# Setup python and print version | |
echo: | |
needs: setup-matrix | |
strategy: | |
matrix: ${{ fromJson(needs.setup-matrix.outputs.matrix) }} | |
runs-on: ubuntu-latest | |
steps: | |
- run: | | |
echo "fruit: ${{ matrix.fruit }}, animal: ${{ matrix.fruit }}, color: ${{ matrix.color }}" |