File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,15 @@ jobs:
26
26
(cd Resources/parsers/50900 && swift build -c release -Xswiftc -static-executable)
27
27
(cd Resources/parsers/trunk && swift build -c release -Xswiftc -static-executable)
28
28
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
+
34
38
- name : Build
35
39
run : |
36
40
set -ex
You can’t perform that action at this time.
0 commit comments