Skip to content

workflow test adjusted #2

workflow test adjusted

workflow test adjusted #2

Workflow file for this run

name: "Test workflow"
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

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

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yaml

Invalid workflow file

You have an error in your yaml syntax on line 21
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 }}"