From e01847aa7fb67ef5c7893586fbdc30e392cad2cb Mon Sep 17 00:00:00 2001 From: Shubham Ingale <77089227+SGI-CAPP-AT2@users.noreply.github.com> Date: Mon, 25 Aug 2025 20:44:23 +0530 Subject: [PATCH] workflow for updates in repo --- .github/workflows/fdroidupdateci.yml | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/fdroidupdateci.yml diff --git a/.github/workflows/fdroidupdateci.yml b/.github/workflows/fdroidupdateci.yml new file mode 100644 index 00000000..1fc27109 --- /dev/null +++ b/.github/workflows/fdroidupdateci.yml @@ -0,0 +1,35 @@ +name: Nightly F-Droid CI + +on: + push: + branches: + - fdroid-repo + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Fdroid Install + uses: subosito/flutter-action@v1 + - name: Run F-Droid Update + env: + FDROID_CONFIG_YML_B64: ${{ secrets.FDROID_CONFIG_YML }} + FDROID_KEYSTORE_P12_B64: ${{ secrets.FDROID_KEYSTORE_P12 }} + run: | + # Decode the secrets into files + echo $FDROID_CONFIG_YML_B64 | base64 --decode > config.yml + echo $FDROID_KEYSTORE_P12_B64 | base64 --decode > keystore.p12 + + # Install fdroidserver + sudo apt-get update + sudo apt-get install -y fdroidserver + + # Run the update command, referencing the files + fdroid update -c + + - name: Push F-Droid updates + run: | + git add . + git commit --amend -m "update: a repo update ${{ github.run_number }}" + git push origin fdroid-repo --force