-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (32 loc) · 832 Bytes
/
ci.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: CI
on:
workflow_dispatch:
pull_request:
types: [synchronize, opened, reopened]
push:
branches: [master]
schedule:
- cron: '0 8 * * FRI' # At 08:00 on Friday.
jobs:
generate_rpg_list:
name: Generate RPG List
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt install -y curl jq
- shell: bash
env:
API_KEY: ${{ secrets.api_key }}
run: ./build-rpglist.sh "$API_KEY"
- name: Set date env
run: echo "TODAY=$(date '+%Y/%m/%d')" >> $GITHUB_ENV
- name: Update Release
uses: softprops/action-gh-release@v1
with:
tag_name: latest
name: ${{ env.TODAY }}
files: |
output/rpglist.json
output/BlockRpg.ps1
output/block-rpg.sh
output/serverlist_full.json