-
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (31 loc) · 984 Bytes
/
create_config.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
name: Create quickget configs
on:
schedule:
- cron: '30 23 * * *'
workflow_dispatch:
repository_dispatch:
types: [ generate_configuration ]
jobs:
create_configs:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Restore cache
uses: actions/cache/restore@v4
with:
path: target/release/quickget_ci
key: ${{ runner.os }}-quickget_ci-${{ hashFiles('**/main.rs') }}
- name: Create configs
run: ./target/release/quickget_ci
- name: Release artifacts
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: 'quickget_data.json, quickget_data.json.zst, quickget_data.json.gz'
artifactContentType: 'application/octet-stream'
body: 'Quickget configuration files'
token: ${{ secrets.GITHUB_TOKEN }}
name: "Quickget configurations"
tag: 'daily'