forked from expressjs/expressjs.com
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add workflow to update external docs (expressjs#1559)
* feat: add workflow to update external docs * rename token
- Loading branch information
1 parent
1106ae3
commit 8a5a0ac
Showing
1 changed file
with
30 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,30 @@ | ||
name: Update External Docs | ||
on: | ||
schedule: | ||
- cron: '0 8 * * 1' | ||
|
||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
|
||
jobs: | ||
update-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run scripts | ||
run: bash ./get-contributing.sh && bash ./get-readmes.sh | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: update external docs | ||
title: 'Update external docs' | ||
body: > | ||
This auto-generated PR updates external documentation to the expressjs.com repository. | ||
labels: doc | ||
branch: external-docs-${{ github.sha }} | ||
delete-branch: true | ||
|
||
|