Skip to content

Commit

Permalink
chore: convert readme generator to yml action executable
Browse files Browse the repository at this point in the history
  • Loading branch information
brunotot committed Aug 30, 2024
1 parent d2e4706 commit 4ab868b
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/composite-actions/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ runs:
- name: ⚙️ Setup Git User
shell: bash
run: |
git config --global user.email "brunotot10000@gmail.com"
git config --global user.name "Bruno Tot"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Install dependencies
shell: bash
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/readme-generator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: MERN Sample App - ReadMe

on:
push:
paths:
- "assets/md/**"
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: 🛒 Checkout Repository
uses: actions/checkout@v4

- name: 🤳 Install
uses: ./.github/composite-actions/install

- name: 🔥 Generate README.md
run: pnpm run script:writeReadmeMarkdown

- name: Push code
uses: stefanzweifel/git-auto-commit-action@v5
File renamed without changes.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ Our goal is to provide an easy setup and deployment process, allowing developers
- [x] Read and write permissions
- [x] Allow GitHub Actions to create and approve pull requests

3. Navigate to **Repo > Actions > typedoc.yml** and click on **Run workflow**.
3. Navigate to **Repo > Actions > typedoc-generator.yml** and click on **Run workflow**.

4. After **typedoc.yml** finishes, the `gh-pages` branch is generated.
4. After **typedoc-generator.yml** finishes, the `gh-pages` branch is generated.

Navigate to **Repo > Settings > Pages** and save the `gh-pages` branch as the deployment branch.

Expand Down
4 changes: 2 additions & 2 deletions assets/md/4-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
- [x] Read and write permissions
- [x] Allow GitHub Actions to create and approve pull requests

3. Navigate to **Repo > Actions > typedoc.yml** and click on **Run workflow**.
3. Navigate to **Repo > Actions > typedoc-generator.yml** and click on **Run workflow**.

4. After **typedoc.yml** finishes, the `gh-pages` branch is generated.
4. After **typedoc-generator.yml** finishes, the `gh-pages` branch is generated.

Navigate to **Repo > Settings > Pages** and save the `gh-pages` branch as the deployment branch.

Expand Down

0 comments on commit 4ab868b

Please sign in to comment.