-
Notifications
You must be signed in to change notification settings - Fork 2
85 lines (66 loc) · 2.04 KB
/
AddAndUpdateMetadata.yml
File metadata and controls
85 lines (66 loc) · 2.04 KB
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
74
75
76
77
78
79
80
81
82
83
84
name: Add And Update Metadata
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 1"
jobs:
build:
name: Process
runs-on: ubuntu-24.04
steps:
- name: Set up Go 1.24
uses: actions/setup-go@v4
with:
go-version: 1.24
id: go
- name: Checkout Codebase
uses: actions/checkout@v4
- name: Setup Dependencies
run: go get .
- name: Build
run: go build -v
- name: Setup DB
run: ./similar init
- name: Run Add new Manga
run: ./similar mangadex add
- name: Update manga metadata since last run
run: ./similar mangadex metadata
- name: Update mappings
run: ./similar calculate mappings
- name: Create PR for Manga metadata changes
uses: peter-evans/create-pull-request@v5
with:
add-paths: |
data/manga/*
data/mappings/*
data/last_metadata_update.txt
commit-message: Update Manga metadata and MU mapping
branch: auto-update
title: Update Manga metadata and MU mapping
delete-branch: true
- name: Calculate similar
run: ./similar calculate similar -t=500
- name: Checkout similar data
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
repository: nekomangaorg/similar-data
ref: main
path: similar-data
- name: cp similar results to similar-data
run: |
cd similar-data
cp -r ../data/similar/ .
- name: Create PR for Similar data
uses: peter-evans/create-pull-request@v5
with:
path: similar-data
token: ${{ secrets.PAT }}
add-paths: |
similar/*
commit-message: Update Similar Mappings
branch: auto-update
title: Update Similar Mappings
body: |
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
delete-branch: true