Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
virtualritz committed May 13, 2024
2 parents 6ea5db3 + a7e6f90 commit 3dfc337
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Check
on:
pull_request:
paths:
- assets/**

jobs:
check_database_update:
name: Check libphonenumber database update
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Update assets
run: ./assets/update.sh
- name: Check git status
run: |
if [[ -n "$(git status --porcelain=v2)" ]];
then
echo "Found untracked or uncommitted files after updating the libphonenumber database, failing."
exit 1
fi
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ strum = { version = ">=0.24, <=0.26", features = ["derive"] }
thiserror = "1.0"

[build-dependencies]
bincode = "1.0.1"
bincode = "1.3"
quick-xml = ">=0.28, <=0.31"
regex = "1.7"
serde = "1.0"
Expand Down
1 change: 1 addition & 0 deletions assets/update.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
set -eu
cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd

GIT_REF=v8.13.35
TMP_CLONE_DIR=$(mktemp -d)
Expand Down

0 comments on commit 3dfc337

Please sign in to comment.