-
-
Notifications
You must be signed in to change notification settings - Fork 27
38 lines (33 loc) · 1.19 KB
/
check_download_status.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
name: Check Download Status
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
check_status:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.check_download_status.outputs.matrix }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check Download Status
id: check_download_status
uses: luxtorpeda-dev/action-check-download-status@v1
create_tickets:
runs-on: ubuntu-latest
if: ${{ needs.check_status.outputs.matrix && needs.check_status.outputs.matrix != '{}' && needs.check_status.outputs.matrix != '' }}
needs: check_status
strategy:
matrix: ${{fromJson(needs.check_status.outputs.matrix)}}
steps:
- name: Create Issue
uses: jayqi/failed-build-issue-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
label-name: ${{ matrix.game_name }} ${{ matrix.download_name }}
title-template: Download failed for ${{ matrix.game_name }} ${{ matrix.download_name }}
body-template: |
Download failed for ${{ matrix.game_name }} ${{ matrix.download_name }}
Response was ${{ matrix.download_status }}
App id of ${{ matrix.game_app_id }}