Skip to content

Commit c549d08

Browse files
committed
more tests
1 parent a78aa59 commit c549d08

File tree

4 files changed

+10
-16
lines changed

4 files changed

+10
-16
lines changed

.github/workflows/hash-files.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,14 @@ jobs:
4747
cd ./wasp-data
4848
git config --global user.name "Wasp Bot"
4949
git config --global user.email "[email protected]"
50-
if [[ -n "$(git status --porcelain finders/items/data/hash.txt jsons/gear.json '*.hash')" ]]; then
51-
git add finders/items/data/hash.txt
52-
git add jsons/gear.json
53-
git add '*.hash'
50+
if [[ -n "$(git status --porcelain)" ]]; then
51+
git add -A
5452
CURRENT_DATE=$(date +'%Y.%m.%d')
5553
COMMIT_HASH=$(git rev-parse --short HEAD)
5654
git commit -m "Automatic version bump to $CURRENT_DATE-$COMMIT_HASH"
5755
git push
5856
else
59-
echo "No hash changes to commit."
57+
echo "No changes to commit."
6058
fi
6159
6260

.github/workflows/update-gear.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,12 @@ jobs:
7272
cd ./wasp-data
7373
git config --global user.name "Wasp Bot"
7474
git config --global user.email "[email protected]"
75-
if [[ -n "$(git status --porcelain jsons/gear.json '*.hash')" ]]; then
76-
git add finders/items/data/hash.txt
77-
git add jsons/gear.json
78-
git add '*.hash'
75+
if [[ -n "$(git status --porcelain)" ]]; then
76+
git add -A
7977
CURRENT_DATE=$(date +'%Y.%m.%d')
8078
COMMIT_HASH=$(git rev-parse --short HEAD)
8179
git commit -m "Automatic version bump to $CURRENT_DATE-$COMMIT_HASH"
8280
git push
8381
else
84-
echo "No hash changes to commit."
82+
echo "No changes to commit."
8583
fi

.github/workflows/update-items.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,12 @@ jobs:
7272
cd ./wasp-data
7373
git config --global user.name "Wasp Bot"
7474
git config --global user.email "[email protected]"
75-
if [[ -n "$(git status --porcelain finders/items/data/hash.txt '*.hash')" ]]; then
76-
git add finders/items/data/hash.txt
77-
git add jsons/gear.json
78-
git add '*.hash'
75+
if [[ -n "$(git status --porcelain)" ]]; then
76+
git add -A
7977
CURRENT_DATE=$(date +'%Y.%m.%d')
8078
COMMIT_HASH=$(git rev-parse --short HEAD)
8179
git commit -m "Automatic version bump to $CURRENT_DATE-$COMMIT_HASH"
8280
git push
8381
else
84-
echo "No hash changes to commit."
82+
echo "No changes to commit."
8583
fi

finders/items/data/item.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
dwarf remains
1+
Dwarf remains
22
toolkit
33
cannonball
44
nulodion's notes

0 commit comments

Comments
 (0)