-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 767 Bytes
/
Copy pathcommands.yml
File metadata and controls
30 lines (26 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Shell Commands Workflow # wrokflow name
on : [push] # event name
jobs: # start job
run-shell-command: # job name
runs-on : ubuntu-latest # VM runner
steps: # actions
- name : echo a string
run : echo "Hello , World"
- name : multiline script
run : |
node -v
npm -v
- name: python command
run : |
import platform
print(platform.processor())
shell : python
run-window-command: # job name
runs-on : windows-latest # VM runner
needs : ["run-shell-command"] # run in series (one after another)
steps: # actions
- name : directory powershell
run : Get-Location
- name : directory bash
run : pwd
shell: bash