Skip to content

Commit d66177e

Browse files
Edit the entrypoint
1 parent 74689f6 commit d66177e

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

entrypoint.sh

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
#!/bin/bash
22

3-
echo "======================'
3+
set -e
44

5-
git config --gloabal user.name "${GITHUB_ACTOR}"
6-
git config --gloabal user.email "${INPUT_EMAIL}"
7-
git config --gloabal --add safe.directory /github/workspace
8-
9-
python3 /usr/bin/feed.py
5+
echo "======================"
106

7+
# Configure Git
8+
git config --global user.name "${GITHUB_ACTOR}"
9+
git config --global user.email "${INPUT_EMAIL}"
10+
git config --global --add safe.directory /github/workspace
1111

12-
git add -A && git commit -m "Update Feed"
12+
python3 /usr/bin/feed.py
1313

14+
git add -A
15+
git commit -m "Update Feed" || echo "No changes to commit"
1416
git push --set-upstream origin main
1517

16-
17-
"
18-
19-
echo "======================'
18+
echo "======================"

0 commit comments

Comments
 (0)