Skip to content

Commit

Permalink
Add a .github action to build DIRECTORY.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dlesnoff committed Jun 21, 2023
1 parent c3440d4 commit 23ae65d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build_directory_md.yml
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"

...

0 comments on commit 23ae65d

Please sign in to comment.