diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 0000000..6f30d53 --- /dev/null +++ b/.github/workflows/format.yml @@ -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 diff --git a/.github/workflows/gen.yml b/.github/workflows/gen.yml index f433e0c..9787f8a 100644 --- a/.github/workflows/gen.yml +++ b/.github/workflows/gen.yml @@ -9,8 +9,8 @@ permissions: contents: write jobs: - gentmdb-mal: - name: GenerateTMDB-MAL + gen-mal: + name: GenerateMaps runs-on: ubuntu-latest steps: - name: Checkout @@ -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