-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* topic changed to get-global-docs-autoupdate
- Loading branch information
1 parent
aec32bf
commit 101da82
Showing
2 changed files
with
13 additions
and
8 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 |
---|---|---|
|
@@ -192,9 +192,9 @@ jobs: | |
uses: derberg/manage-files-in-multiple-repositories@beecbe897cf5ed7f3de5a791a3f2d70102fe7c25 | ||
with: | ||
github_token: ${{ secrets.GH_TOKEN }} | ||
patterns_to_include: .github/workflows/update-docs-on-docs-commit.yml | ||
topics_to_include: autogenerate-docs | ||
patterns_to_include: .github/workflows/update-docs-on-docs-commits.yml | ||
topics_to_include: get-global-docs-autoupdate | ||
committer_username: asyncapi-bot | ||
committer_email: [email protected] | ||
commit_message: "ci: update of files from global .github repo" | ||
bot_branch_name: bot/update-files-from-global-repo | ||
bot_branch_name: bot/update-files-from-global-repo/${{ github.job }} |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
# The given workflow is responsible for generating docs and creating PR with them when there is a commit with docs: prefix | ||
|
||
# This workflow will be updated in all repos with the topic autogenerate-docs | ||
# This workflow will be updated in all repos with the topic get-global-docs-autoupdate | ||
|
||
name: 'Update generated parts of documentation on docs: commits' | ||
|
||
|
@@ -22,14 +22,19 @@ jobs: | |
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
- name: Setup Node.js | ||
- name: Check package-lock version | ||
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master | ||
id: lockversion | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
node-version: "${{ steps.lockversion.outputs.version }}" | ||
cache: 'npm' | ||
cache-dependency-path: '**/package-lock.json' | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Regenerate docs | ||
run: npm run generate:assets | ||
run: npm run generate:assets --if-present | ||
- name: Create Pull Request with updated docs | ||
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # uses 5.0.2 https://github.com/peter-evans/create-pull-request/releases/tag/v5.0.2 | ||
with: | ||
|
@@ -39,4 +44,4 @@ jobs: | |
author: asyncapi-bot <[email protected]> | ||
title: 'chore: update generated docs' | ||
body: 'Update of docs that are generated and were forgotten on PR level.' | ||
branch: gen-docs-update | ||
branch: gen-docs-update/${{ github.job }} |