-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Expand file tree
/
Copy path06-authoring-actions--04-javascript-actions.yaml
More file actions
50 lines (47 loc) · 1.61 KB
/
Copy path06-authoring-actions--04-javascript-actions.yaml
File metadata and controls
50 lines (47 loc) · 1.61 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Javascript Actions
on:
workflow_dispatch:
jobs:
javascript-no-build:
runs-on: ubuntu-latest
name: Javascript action (no build)
steps:
- name: Checkout
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
- name: Run javascript action
uses: ./06-authoring-actions/javascript-actions/javascript-action-no-build
id: hello
with:
who-to-greet: "from a javascript github action 👋"
- name: Get the output time
run: echo "The time was ${{ steps.hello.outputs.time }}"
javascript-with-build:
runs-on: ubuntu-latest
name: Javascript action (with build)
steps:
- name: Checkout
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
with:
submodules: true
- name: Run javascript action
uses: ./06-authoring-actions/javascript-actions/javascript-action-with-build
id: hello
with:
who-to-greet: "from a javascript github action 👋"
- name: Get the output time
run: echo "The time was ${{ steps.hello.outputs.time }}"
typescript:
runs-on: ubuntu-latest
name: Typescript action
steps:
- name: Checkout
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
with:
submodules: true
- name: Run typescript action
uses: ./06-authoring-actions/javascript-actions/typescript-action-with-build
id: hello
with:
milliseconds: 5000
- name: Get the output time
run: echo "The time was ${{ steps.hello.outputs.time }}"