From cfea2b5655c26aea2df7b827c379701848b1cfa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quang=20Ng=C3=B4?= Date: Mon, 13 Jan 2025 14:51:14 +0700 Subject: [PATCH] Setup Flatpak External Data Checker (#1) Co-authored-by: Florian Piesche Co-authored-by: Jarred Wilson --- .github/workflows/beta.yaml | 24 ++++++++++++++++++++++++ flathub.json | 2 ++ net.shadps4.shadPS4.yaml | 3 ++- 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/beta.yaml diff --git a/.github/workflows/beta.yaml b/.github/workflows/beta.yaml new file mode 100644 index 0000000..bab406f --- /dev/null +++ b/.github/workflows/beta.yaml @@ -0,0 +1,24 @@ +name: Check for updates +on: + schedule: # for scheduling to work this file must be in the default branch + - cron: "0 0 * * *" # run daily at 00:00 + workflow_dispatch: # can be manually dispatched under GitHub's "Actions" tab + +jobs: + flatpak-external-data-checker: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v3 + with: + ref: beta + - uses: docker://ghcr.io/flathub/flatpak-external-data-checker:latest + env: + GIT_AUTHOR_NAME: Flatpak External Data Checker + GIT_COMMITTER_NAME: Flatpak External Data Checker + # email sets "github-actions[bot]" as commit author, see https://github.community/t/github-actions-bot-email-address/17204/6 + GIT_AUTHOR_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com + GIT_COMMITTER_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com + EMAIL: 41898282+github-actions[bot]@users.noreply.github.com + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + args: --update --never-fork net.shadps4.shadPS4.yaml diff --git a/flathub.json b/flathub.json index 0788b52..48f4719 100644 --- a/flathub.json +++ b/flathub.json @@ -1,4 +1,6 @@ { + "automerge-flathubbot-prs": false, + "disable-external-data-checker": false, "only-arches": [ "x86_64" ] diff --git a/net.shadps4.shadPS4.yaml b/net.shadps4.shadPS4.yaml index 9d564b9..57d1fa1 100644 --- a/net.shadps4.shadPS4.yaml +++ b/net.shadps4.shadPS4.yaml @@ -80,6 +80,7 @@ modules: - type: git url: https://github.com/shadps4-emu/shadPS4 tag: v.0.5.0 + commit: a1a98966eee07e7ecf3a5e3836b5f2ecde5664b0 x-checker-data: type: json url: https://api.github.com/repos/shadps4-emu/shadps4/releases/latest @@ -88,5 +89,5 @@ modules: # Use updated metainfo.xml with inline releases from main branch https://github.com/flatpak/flatpak/issues/6057 - type: file url: https://raw.githubusercontent.com/shadps4-emu/shadPS4/af8c748e9cb3edc78a3f0e189fbba41bfdba0786/dist/net.shadps4.shadPS4.metainfo.xml - sha256: "b3c45ef60748c7f791ef932a461b86990b380ca527d92d5474d65e3620297566" + sha256: b3c45ef60748c7f791ef932a461b86990b380ca527d92d5474d65e3620297566 dest: dist