-
Notifications
You must be signed in to change notification settings - Fork 25
85 lines (80 loc) · 2.88 KB
/
testing-special-issues.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# This is a basic workflow to help you get started with Actions
name: Testing special issues
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
read_recent_issue:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.1.0
- uses: pCYSl5EDgo/cat@master
id: read_recent
with:
path: issues.txt
- run: echo $TEXT
env:
TEXT: ${{ steps.read_recent.outputs.text }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
powershell:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3.1.0
- name: Download Special Issues
id: specialIssues
shell: pwsh
run: ./windows/magpi-special-issue-downloader.ps1
- name: "Check file existence Windows"
id: check_files
uses: andstor/file-existence-action@v1.1.0
with:
files: "special_issues/Essentials_Games_v1.pdf"
allow_failure: false
- name: lslah issues
run: Get-ChildItem –path D:\a\MagPiDownloader\MagPiDownloader\special_issues
- name: File exists
if: steps.check_files.outputs.files_exists == 'false'
run: exit 1
bash-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.1.0
- name: Download Special Issues
id: specialIssues
run: bash ./linux_mac/magpi-special-issue-downloader.sh
# check if files are existing
- name: "Check file existence Linux"
id: check_files
uses: andstor/file-existence-action@v1.1.0
with:
files: "special_issues/MagPiSE1.pdf, special_issues/Projects_Book_v3.pdf, special_issues/Essentials_Camera_v1.pdf, special_issues/Retro_Gaming.pdf, special_issues/Camera-Guide.pdf"
allow_failure: false
- name: lslah
run: ls -lah special_issues/
- name: File exists
if: steps.check_files.outputs.files_exists == 'false'
run: exit 1
bash-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3.1.0
- name: Download Special Issues
id: specialIssues
run: bash ./linux_mac/magpi-special-issue-downloader.sh
# check if files are existing
- name: "Check file existence MacOs"
id: check_files
uses: andstor/file-existence-action@v1.1.0
with:
files: "special_issues/MagPiSE1.pdf, special_issues/Projects_Book_v3.pdf, special_issues/Essentials_Camera_v1.pdf, special_issues/Retro_Gaming.pdf, special_issues/Camera-Guide.pdf"
allow_failure: false
- name: lslah
run: ls -lah special_issues/
- name: File exists
if: steps.check_files.outputs.files_exists == 'false'
run: exit 1