Skip to content

Commit 9b49b2f

Browse files
committed
ci: One workflow
1 parent 85d3ba6 commit 9b49b2f

File tree

3 files changed

+24
-33
lines changed

3 files changed

+24
-33
lines changed

.github/workflows/lint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,29 @@ on:
1010
- main
1111
- master
1212
jobs:
13+
toc:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Generate TOC
20+
run: |
21+
npm install -g doctoc
22+
doctoc README.md
23+
24+
- name: Commit changes
25+
run: |
26+
git config --global user.name "github-actions"
27+
git config --global user.email "[email protected]"
28+
git add README.md
29+
git commit -m "Auto update TOC" || exit 0
30+
git push
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1333
Awesome_Lint:
1434
runs-on: ubuntu-latest
35+
needs: toc
1536
steps:
1637
- uses: actions/checkout@v2
1738
with:

.github/workflows/toc.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@
6565
- [Unofficial devcontainer CLI in go](https://github.com/stuartleeks/devcontainer-cli)
6666
- [vscli](https://github.com/michidk/vscli) - Unofficial CLI for VS Code.
6767
- [tyedev](https://github.com/CodeMan99/tyedev) - A tool to generate `devcontainer.json` files for your projects.
68-
- [GitHub CodeSpaces](https://github.com/codespaces) - GitHub CodeSpaces
69-
- [devpod.sh](https://devpod.sh) - CodeSpaces but Open Source
68+
- [GitHub CodeSpaces](https://github.com/codespaces) - GitHub CodeSpaces.
69+
- [devpod.sh](https://devpod.sh) - CodeSpaces but Open Source.
7070

7171
## Other tools for working with standadized development environments
7272

73-
- [devenv](https://devenv.sh) - Create Development environments based on Nix
73+
- [devenv](https://devenv.sh) - Create Development environments based on Nix.
7474

7575

0 commit comments

Comments
 (0)