Skip to content

Commit

Permalink
Add multiline_condition demo workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
brianschubert committed Dec 20, 2024
1 parent 6f84687 commit 4c707cf
Showing 1 changed file with 90 additions and 0 deletions.
90 changes: 90 additions & 0 deletions .github/workflows/multiline_condition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
on: [ push ]

permissions:
contents: read

jobs:
single-line:
runs-on: ubuntu-latest
steps: [ run: true ]
if: ${{ false }}

pipe:
runs-on: ubuntu-latest
steps: [ run: true ]
if: |
${{ false }}
pipe-comment:
runs-on: ubuntu-latest
steps: [ run: true ]
if: |
# foo
${{ false }}
pipe-blank:
runs-on: ubuntu-latest
steps: [ run: true ]
if: |
${{ false }}
pipe-dash:
runs-on: ubuntu-latest
steps: [ run: true ]
if: |-
${{ false }}
pipe-dash-comment:
runs-on: ubuntu-latest
steps: [ run: true ]
if: |-
# foo
${{ false }}
pipe-dash-blank:
runs-on: ubuntu-latest
steps: [ run: true ]
if: |-
${{ false }}
bracket:
runs-on: ubuntu-latest
steps: [ run: true ]
if: >
${{ false }}
bracket-comment:
runs-on: ubuntu-latest
steps: [ run: true ]
if: >
# foo
${{ false }}
bracket-blank:
runs-on: ubuntu-latest
steps: [ run: true ]
if: >
${{ false }}
bracket-dash:
runs-on: ubuntu-latest
steps: [ run: true ]
if: >-
${{ false }}
bracket-dash-comment:
runs-on: ubuntu-latest
steps: [ run: true ]
if: >-
# foo
${{ false }}
bracket-dash-blank:
runs-on: ubuntu-latest
steps: [ run: true ]
if: >-
${{ false }}

0 comments on commit 4c707cf

Please sign in to comment.