-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (47 loc) · 1.55 KB
/
main.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
on: [pull_request,workflow_dispatch]
jobs:
hello_world_job:
runs-on: self-hosted
name: A job to say hello
steps:
- uses: actions/checkout@v2
- id: foo
uses: bhuvi11/Test_action@v3
with:
who-to-greet: 'Testing for bhuvi repository action'
- run: echo random-number ${{ steps.foo.outputs.random-number }}
- run: echo "GITHUB_WORKSPACE = $GITHUB_WORKSPACE"
- run: echo ${{(github.event.pull_request.number)}}
shell: bash
- run: echo hello world > math-homework.txt
- name: test
run : |
echo "::set-output name=action_fruit::${{github.workspace}}/math-homework.txt"
docker images
docker pull securetest1/sest
docker run securetest1/sest .
id: run_test
- name: get test
run: echo ${{(steps.run_test.outputs.action_fruit)}}
- uses: actions/upload-artifact@v2
with:
name: homework
path: math-homework.txt
- uses: actions/download-artifact@v2
with:
name: homework
- run: zip -r homework.zip math-homework.txt
- run: ls ${{github.workspace}}
Test:
needs: hello_world_job
runs-on: ubuntu-latest
name: A job to say hello 1
steps:
- uses: actions/checkout@v2
- id: foo
uses: bhuvi11/Test_action@v3
with:
who-to-greet: 'Testing for bhuvi repository action'
- run: echo random-number ${{ steps.foo.outputs.random-number }}
- run: echo "GITHUB_WORKSPACE = $GITHUB_WORKSPACE"
- run: echo ${{(github.event.pull_request.number)}}