From f2b1d971b010f3f65f04b424b2b77e0f04e7354e Mon Sep 17 00:00:00 2001 From: groot Date: Sun, 29 Jun 2025 13:07:49 +0000 Subject: [PATCH] =?UTF-8?q?.gitea/workflows/refresh.yml=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/refresh.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitea/workflows/refresh.yml diff --git a/.gitea/workflows/refresh.yml b/.gitea/workflows/refresh.yml new file mode 100644 index 0000000..ddc8b66 --- /dev/null +++ b/.gitea/workflows/refresh.yml @@ -0,0 +1,29 @@ +name: Download and Commit File + +on: + schedule: + - cron: '0 */8 * * *' # alle 8 Stunden + workflow_dispatch: # manuell auslösbar + +jobs: + download_and_commit: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Download File + run: | + curl -L "https://flod-proxy.send.nrw/download/flodpod" -o flodlist.txt + + - name: Commit and Push Changes + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + + git add heruntergeladene_datei.txt + git diff --cached --quiet && echo "No changes" && exit 0 + + git commit -m "🔄 Update heruntergeladene_datei.txt (scheduled)" + git push