forked from TheAlgorithms/Nim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a .github action to build DIRECTORY.md
- Loading branch information
Showing
1 changed file
with
28 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,28 @@ | ||
--- | ||
name: build_directory_md | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_directory_md: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: jiro4989/setup-nim-action@v1 | ||
|
||
- name: Build file | ||
run: | | ||
git clean -f -x -d | ||
nim r .scripts/directory.nim > DIRECTORY.md | ||
- name: commit the file | ||
git add DIRECTORY.md | ||
git commit directory.md -m "Update DIRECTORY.md" | ||
|
||
... |