Skip to content

Debug actions

Debug actions #39

Workflow file for this run

name: 1. Basic usage
on: push
jobs:
# Setup matrix
setup-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.setup-matrix.outputs.matrix }}
env:
REF: ${{ github.ref_name }}
steps:
- run: echo $REF
- run: echo ${{ env.REF }}
- id: setup-matrix
uses: druzsan/setup-matrix@${{ env.REF }}

Check failure on line 17 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / 1. Basic usage

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 17, Col: 15): Unrecognized named-value: 'env'. Located at position 1 within expression: env.REF
with:
matrix: |
os: [ubuntu-latest, macos-latest]
python-version: [3.8, 3.10, 3.12]
include:
- os: windows-latest
python-version: 3.8
- os: windows-latest
python-version: 3.10
exclude:
- os: macos-latest
python-version: 3.8
# Setup python and print version
setup-python:
needs: setup-matrix
strategy:
matrix: ${{ fromJson(needs.setup-matrix.outputs.matrix) }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-python@v5
with:
python-version: '${{ matrix.python-version }}'
- run: python --version