File tree Expand file tree Collapse file tree 2 files changed +38
-16
lines changed Expand file tree Collapse file tree 2 files changed +38
-16
lines changed Original file line number Diff line number Diff line change 1
1
on : [push]
2
2
3
3
jobs :
4
- hello_world_job :
4
+ job :
5
+ name : Test
5
6
runs-on : ubuntu-latest
6
- name : A job to say hello
7
7
steps :
8
- - name : Hello world action step
9
- id : hello
10
- uses :
panticmilos/[email protected]
8
+ - name : Env
9
+ run : env
10
+ - name : Event data
11
+ run : cat $GITHUB_EVENT_PATH
12
+ - name : Check
13
+ env :
14
+ TOKEN : ${{ secrets.GITHUB_TOKEN }}
15
+ run : |
16
+ which node
17
+ node --version
18
+ echo "RUNNER_TOOL_CACHE=$RUNNER_TOOL_CACHE"
19
+ ls "$RUNNER_TOOL_CACHE/node"
20
+ curl https://api.github.com/rate_limit -u "token:$TOKEN"
21
+ - uses : actions/setup-node@v3
11
22
with :
12
- who-to-greet : ' Mona the Octocat'
13
- # Use the output from the `hello` step
14
- - name : Get the output time
15
- run : echo "The time was ${{ steps.hello.outputs.time }}"
23
+ node-version : ^16.13.2
24
+ - name : Check
25
+ env :
26
+ TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
+ run : |
28
+ which node
29
+ node --version
30
+ echo "RUNNER_TOOL_CACHE=$RUNNER_TOOL_CACHE"
31
+ ls "$RUNNER_TOOL_CACHE/node"
32
+ curl https://api.github.com/rate_limit -u "token:$TOKEN"
33
+ - uses : actions/setup-node@v3
34
+ with :
35
+ node-version : 16.13.2
36
+ - name : Check
37
+ env :
38
+ TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
+ run : |
40
+ which node
41
+ node --version
42
+ echo "RUNNER_TOOL_CACHE=$RUNNER_TOOL_CACHE"
43
+ ls "$RUNNER_TOOL_CACHE/node"
44
+ curl https://api.github.com/rate_limit -u "token:$TOKEN"
Original file line number Diff line number Diff line change @@ -20,13 +20,6 @@ export async function run() {
20
20
let arch = core . getInput ( 'architecture' ) ;
21
21
const cache = core . getInput ( 'cache' ) ;
22
22
23
- const nameToGreet = core . getInput ( 'who-to-greet' ) ;
24
- console . log ( `Hello ${ nameToGreet } !` ) ;
25
-
26
- const time = ( new Date ( ) ) . toTimeString ( ) ;
27
- core . setOutput ( "time" , "30" ) ;
28
- console . log ( "test" ) ;
29
-
30
23
const payload = JSON . stringify ( github . context . payload , undefined , 2 )
31
24
console . log ( `The event payload: ${ payload } ` ) ;
32
25
You can’t perform that action at this time.
0 commit comments