Skip to content

Fix workflow naming error #5

Fix workflow naming error

Fix workflow naming error #5

Workflow file for this run

name: Run tests on a branch when pushed or PR'd
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
on:
push:
branches: [ main, workflows ]
pull_request:
branches: [ main, workflows ]
jobs:
call_tester:
name: Run unit tests on ${{ env.BRANCH_NAME }} branch

Check failure on line 14 in .github/workflows/unit_test.yml

View workflow run for this annotation

GitHub Actions / Run tests on a branch when pushed or PR'd

Invalid workflow file

The workflow is not valid. .github/workflows/unit_test.yml (Line: 14, Col: 11): Unrecognized named-value: 'env'. Located at position 1 within expression: env.BRANCH_NAME
uses: avstack-lab/workflows/.github/workflows/test_on_branch_with_uv.yml@main
with:
branch: $BRANCH_NAME
os: ubuntu-22.04
python-versions: "[ '3.10' ]"