-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51008d8
commit 5c7caef
Showing
1 changed file
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 '[email protected]' | ||
git commit -m "Add DB dump for ${{github.ref_name}}" | ||
|