From 253a160a934d48aab82cf00ea65f95887ed03308 Mon Sep 17 00:00:00 2001 From: Callan Barrett Date: Sun, 21 Jan 2024 18:53:06 +0800 Subject: [PATCH] Create manual mister repo action --- .github/workflows/mister_repo.yml | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/mister_repo.yml diff --git a/.github/workflows/mister_repo.yml b/.github/workflows/mister_repo.yml new file mode 100644 index 00000000..b9763aca --- /dev/null +++ b/.github/workflows/mister_repo.yml @@ -0,0 +1,32 @@ +name: Generate MiSTer latest repo +on: + workflow_dispatch: + +permissions: write-all +jobs: + mister-repo: + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + steps: + - uses: actions/checkout@v2 + - name: Get latest TapTo release + id: taptoreleaseinfo + uses: cardinalby/git-get-release-action@v1 + with: + latest: true + repo: wizzomafizzo/tapto + ref: main + - name: Download release files + run: | + DL_URL=https://github.com/wizzomafizzo/tapto/releases/download/${{ steps.taptoreleaseinfo.outputs.tag_name }} + mkdir -p _bin/releases + curl -L ${DL_URL}/tapto.sh -o _bin/releases/tapto.sh + curl -L ${DL_URL}/taptui.sh -o _bin/releases/taptui.sh + - name: Create databases + run: | + python scripts/mister/repo/generate.py ${{ steps.taptoreleaseinfo.outputs.tag_name }} + - name: Commit databases + uses: EndBug/add-and-commit@v9 + with: + add: scripts/mister/repo/tapto.json -f -A \ No newline at end of file