Skip to content

⏱️ Quickstart

⏱️ Quickstart #193

Workflow file for this run

name: '⏱️ Quickstart'
on:
push:
schedule:
- cron: '0 6 * * *'
workflow_dispatch:
# This workflow serves for multiple purposes:
# - Action integration test
# - Quickstart example
jobs:
# Setup matrix
setup-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.setup-matrix.outputs.matrix }}
steps:
- name: '🧱 Build Matrix'
id: setup-matrix
uses: druzsan/setup-matrix@main
with:
# Use | to preserve valid YAML syntax
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:
- name: '📢 Echo'
run: |
echo "fruit: ${{ matrix.fruit }}, animal: ${{ matrix.fruit }}, color: ${{ matrix.color }}"