Skip to content

Commit

Permalink
ci: add format & genmap for tvdb
Browse files Browse the repository at this point in the history
  • Loading branch information
varoOP committed Sep 27, 2023
1 parent a2303a8 commit 4c80ea9
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 8 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: formatMaps

on:
pull_request:

permissions:
contents: write

jobs:
formatMaps:
name: FormatMaps
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: SetupShinkrodb
uses: supplypike/setup-bin@v3
with:
uri: "https://github.com/varoOP/shinkrodb/releases/download/v0.1.2/shinkrodb_v0.1.2_linux_amd64.tar.gz"
name: "shinkrodb"
version: "0.1.2"

- name: FormatMaps
run: |
shinkrodb format
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Format maps
15 changes: 7 additions & 8 deletions .github/workflows/gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ permissions:
contents: write

jobs:
gentmdb-mal:
name: GenerateTMDB-MAL
gen-mal:
name: GenerateMaps
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -21,15 +21,14 @@ jobs:
- name: SetupShinkrodb
uses: supplypike/setup-bin@v3
with:
uri: "https://github.com/varoOP/shinkrodb/releases/download/v0.1.1/shinkrodb_v0.1.1_linux_amd64.tar.gz"
uri: "https://github.com/varoOP/shinkrodb/releases/download/v0.1.2/shinkrodb_v0.1.2_linux_amd64.tar.gz"
name: "shinkrodb"
version: "0.1.1"
version: "0.1.2"

- name: GenerateMap
- name: GenerateMaps
run: |
shinkrodb genmap
shinkrodb genmap
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update tmdb-mal.yaml

commit_message: Generate maps

0 comments on commit 4c80ea9

Please sign in to comment.