Skip to content

Commit 3e71b4a

Browse files
authored
chore: update commit mechanism
1 parent d4fcbf9 commit 3e71b4a

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/UpdateDirectory.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,16 @@ jobs:
1919
- name: 🗄️ Create Directory from JS files
2020
run: node .github/workflows/UpdateDirectory.mjs
2121

22-
- name: 🤓 Commit & push new Directory (if needed)
22+
- name: Configure Github Action
2323
run: |
2424
git config --global user.name github-actions
2525
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
26-
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
27-
.github/workflows/CommitAndPushDirectory.sh
26+
27+
- name: 🤓 Commit & push new Directory (if needed)
28+
run: |
29+
if [[ `git status --porcelain` ]]; then
30+
git commit -am "Updated Documentation in README.md"
31+
git push
32+
else
33+
echo "NO CHANGES DETECTED"
34+
fi

0 commit comments

Comments
 (0)