Skip to content

Commit

Permalink
Fix DB dump
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasKalbertodt committed May 23, 2024
1 parent 51008d8 commit 5c7caef
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/upload-db-dump.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
on:
release:
types: [published]
push:

name: Create & upload DB dump

Expand All @@ -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
Expand Down Expand Up @@ -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 '[email protected]'
git commit -m "Add DB dump for ${{github.ref_name}}"
Expand Down

0 comments on commit 5c7caef

Please sign in to comment.