-
Notifications
You must be signed in to change notification settings - Fork 9
46 lines (46 loc) · 1.22 KB
/
test.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
on:
pull_request:
branches:
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Compress action step
uses: ./ # Uses an action in the root directory
id: compress
with:
command: c
cwd: ./test
files: |
./toCompress
outPath: yolo.tar.gz
# Use the output from the `compress` step
- name: Get the output
run: echo "The output was ${{ steps.compress.outputs.done }}"
- uses: actions/upload-artifact@v1
with:
name: yolo.tar.gz
path: yolo.tar.gz
- name: Create extract directory
run: mkdir extract
- name: Extract files
uses: ./
id: extract
with:
command: x
cwd: ./extract
files: yolo.tar.gz
- name: Check extracted file exist
id: check-files
uses: andstor/file-existence-action@v1
with:
files: "./extract/toCompress/abc/test.txt"
- name: Fail if file does not exist
if: steps.check-files.outputs.files_exists == 'false'
run: exit 1