Skip to content

Commit

Permalink
chore: rename docs commit workflow
Browse files Browse the repository at this point in the history
 * topic changed to get-global-docs-autoupdate
  • Loading branch information
Shurtu-gal committed Oct 31, 2023
1 parent aec32bf commit 101da82
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/global-replicator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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:
Expand All @@ -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 }}

0 comments on commit 101da82

Please sign in to comment.