From 5c7caef664bba1cd59d6630eb55f4bcd4207e688 Mon Sep 17 00:00:00 2001 From: Lukas Kalbertodt Date: Thu, 23 May 2024 12:54:57 +0200 Subject: [PATCH] Fix DB dump --- .github/workflows/upload-db-dump.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/upload-db-dump.yml b/.github/workflows/upload-db-dump.yml index 88ae6a2a7..61f965ffb 100644 --- a/.github/workflows/upload-db-dump.yml +++ b/.github/workflows/upload-db-dump.yml @@ -1,6 +1,5 @@ on: - release: - types: [published] + push: name: Create & upload DB dump @@ -26,7 +25,7 @@ jobs: fetch-depth: '0' # We need to do a full clone to be able to switch the branch later - name: Download Tobira binary - run: curl --location --output tobira 'https://github.com/elan-ev/tobira/releases/download/${{github.ref_name}}/tobira-x86_64-unknown-linux-gnu' + run: curl --location --output tobira 'https://github.com/elan-ev/tobira/releases/download/v2.9/tobira-x86_64-unknown-linux-gnu' - run: chmod +x tobira # We adjust the dev config for simplicity here. We could also provide a @@ -75,8 +74,7 @@ jobs: git reset --hard HEAD git checkout db-dumps cp db-dump.xz db-dump-latest.xz - mv db-dump.xz db-dump-${{github.ref_name}}.xz - git add db-dump-latest.xz db-dump-${{github.ref_name}}.xz + git add db-dump-latest.xz git config --global user.name 'GitHub Actions' git config --global user.email 'noreply@github.com' git commit -m "Add DB dump for ${{github.ref_name}}"