Skip to content

Commit 61558e9

Browse files
Push parser executables
1 parent a93a12c commit 61558e9

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@ jobs:
2626
(cd Resources/parsers/50900 && swift build -c release -Xswiftc -static-executable)
2727
(cd Resources/parsers/trunk && swift build -c release -Xswiftc -static-executable)
2828
29-
git add Resources/parsers/50800/.build/release/parser
30-
git add Resources/parsers/50900/.build/release/parser
31-
git add Resources/parsers/trunk/.build/release/parser
32-
git commit -m "Update parsers"
33-
git push -u origin HEAD
29+
git remote set-url origin https://github-actions:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}
30+
git config --global user.name "${GITHUB_ACTOR}"
31+
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
32+
if (git diff --shortstat | grep '[0-9]'); then \
33+
git add .; \
34+
git commit -m "Update parsers"; \
35+
git push origin HEAD:${GITHUB_REF}; \
36+
fi
37+
3438
- name: Build
3539
run: |
3640
set -ex

0 commit comments

Comments
 (0)