-
Notifications
You must be signed in to change notification settings - Fork 17
58 lines (52 loc) · 1.3 KB
/
example-job.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Example Job
on:
push:
branches:
- "main"
- "*.latest"
pull_request:
permissions: read-all
# https://docs.github.com/en/actions/learn-github-actions/essential-features-of-github-actions
jobs:
example-job:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./scripts
steps:
- name: Check out the repository to the runner
uses: actions/checkout@v4
- name: Run a script
run: ./my-script.sh
example-job-bash-default:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./scripts
shell: bash
steps:
- name: Check out the repository to the runner
uses: actions/checkout@v4
- name: Run a script
run: ./my-script.sh
example-job-bash-in-step:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./scripts
steps:
- name: Check out the repository to the runner
uses: actions/checkout@v4
- name: Run a script
run: ./my-script.sh
shell: bash
example-job-bash-inline:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./scripts
steps:
- name: Check out the repository to the runner
uses: actions/checkout@v4
- name: Run a script
run: bash ./my-script.sh