Skip to content

Commit

Permalink
feat(07-expressions): add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lauromueller committed Nov 3, 2023
1 parent 4d6dd8b commit f5b64bc
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/07-expressions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 07 - Using Expressions

on:
push:
workflow_dispatch:
inputs:
debug:
type: boolean
default: false

jobs:
echo:
runs-on: ubuntu-latest
steps:
- name: '[debug] Print start-up data'
if: ${{ inputs.debug }}
run: |
echo "Triggered by: ${{ github.event_name }}"
echo "Branch: ${{ github.ref }}"
echo "Commit SHA: ${{ github.sha }}"
echo "Runner OS: ${{ runner.os }}"
- name: '[debug] Run when branch is main'
if: ${{ inputs.debug }} && ${{ github.ref }} == 'refs/heads/main'
run: echo "I was triggered from the main branch"
- name: 'Greeting'
run: echo "Hello, world"

0 comments on commit f5b64bc

Please sign in to comment.