Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .github/workflows/CommitAndPushDirectory.sh

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/UpdateDirectory.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function pathsToMarkdown (filePaths) {

for (let filepath of filePaths) {
let filename = path.basename(filepath)
filepath = path.dirname(path.sep)
filepath = path.dirname(filepath)

if (filepath !== oldPath) {
oldPath = printPath(oldPath, filepath, output)
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/UpdateDirectory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Update Directory

on:
push:
branches:
- master
branches-ignore:
"master"

jobs:
updateDirectory:
Expand All @@ -22,9 +22,16 @@ jobs:
- name: 🗄️ Create Directory from JS files
run: node .github/workflows/UpdateDirectory.mjs

- name: 🤓 Commit & push new Directory (if needed)
- name: Configure Github Action
run: |
git config --global user.name github-actions
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
.github/workflows/CommitAndPushDirectory.sh

- name: 🤓 Commit & push new Directory (if needed)
run: |
if [[ `git status --porcelain` ]]; then
git commit -am "Updated Documentation in README.md"
git push
else
echo "NO CHANGES DETECTED"
fi
Loading