-
Notifications
You must be signed in to change notification settings - Fork 25
73 lines (68 loc) · 2.56 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
# 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 ]
workflow_dispatch: {}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
special-powershell:
runs-on: windows-latest
steps:
- uses: actions/[email protected]
- name: Download Special Issues windows
id: specialIssues
shell: pwsh
run: ./windows/magpi-special-issue-downloader.ps1
- name: lslah issues
run: Get-ChildItem –path D:\a\MagPiDownloader\MagPiDownloader\windows\special_issues
- name: "Check file existence Windows special"
id: check_files
uses: andstor/[email protected]
with:
files: "./windows/special_issues/Essentials_Games_v1.pdf"
fail: true
- name: File exists
if: steps.check_files.outputs.files_exists == 'false'
run: exit 1
special-bash-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Download Special Issues linux
id: specialIssues
run: bash ./linux_mac/magpi-special-issue-downloader.sh
- name: "Check file existence Linux special issues"
id: check_files
uses: andstor/[email protected]
with:
files: "special_issues/MagPiSE1.pdf, special_issues/Projects_Book_v3.pdf, special_issues/Retro_Gaming.pdf, special_issues/C_and_GUI_Programming_2nd_Edition.pdf"
fail: true
- name: lslah
run: ls -lah special_issues/
- name: File exists
if: steps.check_files.outputs.files_exists == 'false'
run: exit 1
special-bash-macos:
runs-on: macos-latest
steps:
- uses: actions/[email protected]
- name: Download Special Issues Mac
id: specialIssues
run: bash ./linux_mac/magpi-special-issue-downloader.sh
# check if files are existing
- name: "Check file existence MacOs special issues"
id: check_files
uses: andstor/[email protected]
with:
files: "special_issues/MagPiSE1.pdf, special_issues/Projects_Book_v3.pdf, special_issues/Retro_Gaming.pdf, special_issues/C_and_GUI_Programming_2nd_Edition.pdf"
fail: true
- name: lslah
run: ls -lah special_issues/
- name: File exists
if: steps.check_files.outputs.files_exists == 'false'
run: exit 1