-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (52 loc) · 1.51 KB
/
triggerOnPR.yml
File metadata and controls
64 lines (52 loc) · 1.51 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# This is a basic workflow to help you get started with Actions
name: Triggered on PR
on:
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
create-artifact1:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: write lines
run: |
mkdir -p artifact
echo hello > artifact/hello.txt
echo world > artifact/world.txt
- name: upload artifact
uses: actions/upload-artifact@v2
with:
name: drop
path: artifact/
create-artifact2:
needs: create-artifact1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: write lines
run: |
mkdir -p artifact2
echo hello > artifact2/hello.txt
echo world! > artifact2/world.txt
- name: upload artifact
uses: actions/upload-artifact@v2
with:
name: drop2
path: artifact2/
compare-artifacts:
needs: create-artifact2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2.2.2
- name: Download a Build Artifact
uses: actions/download-artifact@v2.0.10
with:
path: drop-artifacts/
- name: Display structure of downloaded files
run: ls -R
working-directory: drop-artifacts/
- name: test file compare
run: python ./scripts/compare-files.py drop-artifacts/drop/ drop-artifacts/drop2/