Skip to content

Commit

Permalink
remove recent issue when not needed
Browse files Browse the repository at this point in the history
#79

- use separate files for testing
  - regular issues
  - different language issues
  - special issues
  - educational issues
  • Loading branch information
joergi committed Oct 14, 2022
1 parent 1de5751 commit ed16154
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 35 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/testing-educational-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,6 @@ on:

# 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:
Expand Down
31 changes: 9 additions & 22 deletions .github/workflows/testing-special-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,15 @@ on:

# 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
- name: Download Special Issues windows
id: specialIssues
shell: pwsh
run: ./windows/magpi-special-issue-downloader.ps1
- name: "Check file existence Windows"
- name: "Check file existence Windows special"
id: check_files
uses: andstor/file-existence-action@v1.1.0
with:
Expand All @@ -43,17 +30,17 @@ jobs:
run: Get-ChildItem –path D:\a\MagPiDownloader\MagPiDownloader\special_issues
- name: File exists
if: steps.check_files.outputs.files_exists == 'false'
run: exit 1
run: exit 1

bash-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.1.0
- name: Download Special Issues
- name: Download Special Issues linux
id: specialIssues
run: bash ./linux_mac/magpi-special-issue-downloader.sh
# check if files are existing
- name: "Check file existence Linux"

- name: "Check file existence Linux special issues"
id: check_files
uses: andstor/file-existence-action@v1.1.0
with:
Expand All @@ -63,16 +50,16 @@ jobs:
run: ls -lah special_issues/
- name: File exists
if: steps.check_files.outputs.files_exists == 'false'
run: exit 1
run: exit 1
bash-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3.1.0
- name: Download Special Issues
- 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"
- name: "Check file existence MacOs special issues"
id: check_files
uses: andstor/file-existence-action@v1.1.0
with:
Expand Down

0 comments on commit ed16154

Please sign in to comment.