-
Notifications
You must be signed in to change notification settings - Fork 0
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
7ac31ca
commit 06f7e19
Showing
1 changed file
with
15 additions
and
11 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 |
---|---|---|
@@ -1,17 +1,21 @@ | ||
name: Shell commands | ||
on: [push] | ||
|
||
on: | ||
push: | ||
# This workflow will be triggered on push events | ||
|
||
jobs: | ||
run-shell-command: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, ubuntu-20.04] | ||
matrix: | ||
os: [ubuntu-latest, ubuntu-20.04] | ||
steps: | ||
- name: echo a string | ||
run: echo "Hello World" | ||
- name: multiline scritp | ||
run: | | ||
python3 -V | ||
touch my_file_with_workflow.py | ||
ls -l | ||
- name: echo a string | ||
run: echo "Hello World" | ||
- name: multiline script | ||
run: | | ||
python3 -V | ||
touch my_file_with_workflow.py | ||
ls -l | ||