-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d6dd8b
commit f5b64bc
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |