Skip to content

Adjust basic usage example #11

Adjust basic usage example

Adjust basic usage example #11

Workflow file for this run

name: '1. ⏱️ Basic usage'
on:
push:
schedule:
- cron: '0 6 * * *'
workflow_dispatch:
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: [cat, dog]
include:
- color: green
- color: pink
animal: cat
exlude:
- fruit: apple
animal: dog
# Setup python and print version
setup-python:
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 }}"