Skip to content

workflow fix

workflow fix #3

Workflow file for this run

name: "Test workflow"

Check failure on line 1 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yaml

Invalid workflow file

Invalid `steps` value - steps should be list of `uses` or `run` items
on:
push:
branches:
- '**'
paths-ignore:
- '**.md'
- '**.MD'
- '.gitignore'
- 'LICENSE'
- 'CODEOWNERS'
- '.github/*.yml'
jobs:
test1:
name: Test1
permissions:
contents: read
if: |
${{ github.ref_name == 'master' }}
runs-on: ubuntu-latest
steps:
shell: bash
run: |
echo 'Test1 ran'
test2:
name: Test2
permissions:
contents: read
if: github.ref_name == 'master'
runs-on: ubuntu-latest
steps:
shell: bash
run: |
echo 'Test2 ran'
test3:
name: Test3
permissions:
contents: read
runs-on: ubuntu-latest
steps:
shell: bash
run: |
echo "Test3: ran on $NAME"
env:
NAME: "${{ github.ref_name }}"