-
-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade Lunaria and add Action (#1768)
* Upgrade Lunaria and add Action * Run only in the docs Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update lunaria.yml * Use SHA --------- Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
- Loading branch information
1 parent
1ae00df
commit be258c6
Showing
4 changed files
with
69 additions
and
221 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,46 @@ | ||
name: Lunaria | ||
|
||
on: | ||
# Trigger the workflow every time a pull request is opened or synchronized at the target `main` branch | ||
pull_request_target: | ||
types: [opened, synchronize] | ||
branches: [main] | ||
paths: | ||
- 'docs/**' | ||
|
||
# Allow this job to clone the repository and comment on the pull request | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
lunaria-overview: | ||
name: Generate Lunaria Overview | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
# Necessary for Lunaria to work properly | ||
# Makes the action clone the entire git history | ||
fetch-depth: 0 | ||
|
||
- name: Setup PNPM | ||
uses: pnpm/action-setup@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
shell: bash | ||
|
||
- name: Generate Lunaria Overview | ||
uses: yanthomasdev/lunaria-action@f60cb4c257e95ab41fc44356c4a852fe614e3bb4 | ||
with: | ||
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }} | ||
working-directory: docs |
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
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
Oops, something went wrong.