-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1012 Bytes
/
include_files.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
name: test:include_files
on:
push:
paths:
- 'action.yml'
- '.github/workflows/include_files.yml'
workflow_dispatch:
jobs:
test-run:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: idleberg/create-playdate-release@develop
with:
dry_run: true
input: .github/source
include_files: 'LICENSE README.md'
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Included file exists
run: |
if ! ls build.pdx/main.pdz 1> /dev/null 2>&1; then
echo "Build output doesn't exist"
exit 1
fi
if ! unzip -l build-${{ github.ref_name }}.zip | grep LICENSE 1> /dev/null 2>&1; then
echo "LICENSE doesn't exist"
exit 1
fi
if ! unzip -l build-${{ github.ref_name }}.zip | grep README.md 1> /dev/null 2>&1; then
echo "README.md doesn't exist"
exit 1
fi