-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d85a8df
commit e3ae61a
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Build DIRECTORY.md | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
main: | ||
name: Update DIRECTORY.md | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
- name: Setup Git | ||
run: | | ||
git config --global user.name "$GITHUB_ACTOR" | ||
git config --global user.email "[email protected]" | ||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY | ||
- name: Update DIRECTORY.md file | ||
run: | | ||
wget https://raw.githubusercontent.com/TheAlgorithms/scripts/main/build_directory_md.py | ||
python3 build_directory_md.py Zig . .zig build.zig > DIRECTORY.md | ||
- name: Commit changes | ||
run: | | ||
git diff | ||
git commit -m "Update DIRECTORY.md" DIRECTORY.md || true | ||
git push --force origin HEAD:$GITHUB_REF || true | ||
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters