-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (24 loc) · 1.57 KB
/
ex1-execute-scripts.yml
File metadata and controls
31 lines (24 loc) · 1.57 KB
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
31
name: 1 - Run Hello Worlds scripts # <- Workflow name.
on: # <- The trigger definition block.
push: # <- An event to trigger the action, of type push.
branches: [ # <- Target Branches. Accepts an array.
main,
another-branch
]
jobs: # <- The execution of work block.
Job-Identifier: # <- Job ID. Contains related action steps.
name: Executing Hello World Script # <- Job Name.
runs-on: windows-latest # <- Tells the server which OS to run on. Can also be windows, macOS, or even self-hosted.
steps: # <- Step definitions.
- uses: actions/checkout@v2 # <- Use keyword selects an action. Actions/ path in github is where common actions are predefined.
- name: Printing Powershell # <- Optional step name, but advised.
run: ./Powershell/HelloWorld.ps1 # <- Run keyword executes a command. In this case a powershell script.
- name: Printing Bash
shell: bash # <- Overrides the default shell language of your specified server.
run: ./Bash/HelloWorld.sh
- name: Printing ZShell
shell: sh
run: ./Zshell/HelloWorld.zsh
- name: Printing Python
shell: python
run: exec(open('./Python/HelloWorld.py').read())