FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaScript/.github/workflows/UpdateDirectory.yml at master · TheAlgorithms/JavaScript · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
TheAlgorithms
/
JavaScript
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
5.8k
Star
34.2k
Code
Issues
21
Pull requests
192
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaScript
/
.github
/
workflows
/
UpdateDirectory.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
38 lines (31 loc) · 993 Bytes
Breadcrumbs
JavaScript
/
.github
/
workflows
/
UpdateDirectory.yml
Copy path
File metadata and controls
38 lines (31 loc) · 993 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
This GitHub Action updates the DIRECTORY.md file (if needed) when doing a git push
name
:
Update Directory
on
:
push
:
branches-ignore
:
"
master
"
jobs
:
updateDirectory
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v4
-
uses
:
actions/setup-node@v4
with
:
node-version
:
22
cache
:
npm
-
name
:
📦 Install dependencies
run
:
npm ci
-
name
:
🗄️ Create Directory from JS files
run
:
node .github/workflows/UpdateDirectory.js
-
name
:
Configure Github Action
run
:
|
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
-
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
Back
|
FazBrowse Home
|
New Git URL