From 25e8704116c50f31ee7de3b728a0b26b98b95f26 Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Sun, 5 May 2024 20:32:24 +0200 Subject: [PATCH 1/6] Create test.yml --- .github/workflows/test.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..fb87baa --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,14 @@ +name: Test +on: + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Run Hello World + run: echo "Hello World" + - name: cat .yarnrc.yml + run: cat .yarnrc.yml From b989a27dbbc533e42aad24f27bde24932ee1961d Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Sun, 5 May 2024 21:14:18 +0200 Subject: [PATCH 2/6] Create website-bot-update.yml --- .github/workflows/website-bot-update.yml | 63 ++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/website-bot-update.yml diff --git a/.github/workflows/website-bot-update.yml b/.github/workflows/website-bot-update.yml new file mode 100644 index 0000000..9e755d3 --- /dev/null +++ b/.github/workflows/website-bot-update.yml @@ -0,0 +1,63 @@ +name: Update website and bot's API docs + +on: + workflow_dispatch: + +jobs: + website: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + repository: 'sern-handler/website' + token: ${{ secrets.AUTOMATA_TOKEN }} + - name: Setup node.js + uses: actions/setup-node@v3 + with: + node-version: '20.x' + - name: Install dependencies + run: yarn --frozen-lockfile + - name: Move docusaurus config files + run: | + mv ./docusaurus.config.js ./original.docusaurus.config.js + mv ./docgen.docusaurus.config.js ./docusaurus.config.js + - name: Build website + run: yarn build + - name: Revert moved config files + run: | + mv docusaurus.config.js docgen.docusaurus.config.js + mv original.docusaurus.config.js docusaurus.config.js + - name: Push to repo + run: | + git add . + git commit -m "docs: Update API section" + git push + community-bot: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + repository: 'sern-handler/sern-community' + token: ${{ secrets.AUTOMATA_TOKEN }} + - name: Setup node.js + uses: actions/setup-node@v3 + with: + node-version: '20.x' + - name: Install dependencies + run: yarn --frozen-lockfile + - name: Clone handler repo & install deps + run: | + git clone https://github.com/sern-handler/handler.git ../sernHandlerV2 + cd ../sernHandlerV2 + yarn --frozen-lockfile + yarn build:dev + cd ${{ github.workspace }} + - name: Generate API docs + run: typedoc --json ./docs.json --pretty --entryPoints ../sernHandlerV2/src/index.ts --tsconfig ../sernHandlerV2/tsconfig.json --excludeExternals + - name: Push to repo + run: | + git add . + git commit -m "docs: Update API section" + git push From ca9b08edaf27c3f8453b1be171ded206c6a1eb29 Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Sun, 5 May 2024 21:18:29 +0200 Subject: [PATCH 3/6] Update website-bot-update.yml --- .github/workflows/website-bot-update.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/website-bot-update.yml b/.github/workflows/website-bot-update.yml index 9e755d3..d58f7c1 100644 --- a/.github/workflows/website-bot-update.yml +++ b/.github/workflows/website-bot-update.yml @@ -18,6 +18,13 @@ jobs: node-version: '20.x' - name: Install dependencies run: yarn --frozen-lockfile + - name: Clone handler repo & install deps + run: | + git clone https://github.com/sern-handler/handler.git ../sernHandlerV2 + cd ../sernHandlerV2 + yarn --inmutable + yarn build:dev + cd ${{ github.workspace }} - name: Move docusaurus config files run: | mv ./docusaurus.config.js ./original.docusaurus.config.js @@ -45,13 +52,15 @@ jobs: uses: actions/setup-node@v3 with: node-version: '20.x' + - name: Install typedoc + run: yarn global add typedoc - name: Install dependencies run: yarn --frozen-lockfile - name: Clone handler repo & install deps run: | git clone https://github.com/sern-handler/handler.git ../sernHandlerV2 cd ../sernHandlerV2 - yarn --frozen-lockfile + yarn --inmutable yarn build:dev cd ${{ github.workspace }} - name: Generate API docs From 07ea1db8d6484d8e515b441e6754cbcdd7063e94 Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Sun, 5 May 2024 21:20:27 +0200 Subject: [PATCH 4/6] Update website-bot-update.yml --- .github/workflows/website-bot-update.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/website-bot-update.yml b/.github/workflows/website-bot-update.yml index d58f7c1..e02bd7d 100644 --- a/.github/workflows/website-bot-update.yml +++ b/.github/workflows/website-bot-update.yml @@ -22,7 +22,7 @@ jobs: run: | git clone https://github.com/sern-handler/handler.git ../sernHandlerV2 cd ../sernHandlerV2 - yarn --inmutable + yarn --immutable yarn build:dev cd ${{ github.workspace }} - name: Move docusaurus config files @@ -53,14 +53,14 @@ jobs: with: node-version: '20.x' - name: Install typedoc - run: yarn global add typedoc + run: npm i -g typedoc - name: Install dependencies run: yarn --frozen-lockfile - name: Clone handler repo & install deps run: | git clone https://github.com/sern-handler/handler.git ../sernHandlerV2 cd ../sernHandlerV2 - yarn --inmutable + yarn --immutable yarn build:dev cd ${{ github.workspace }} - name: Generate API docs From 07812d6128aa8029912cb663bd0257b412b51456 Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Sun, 5 May 2024 21:28:15 +0200 Subject: [PATCH 5/6] Update website-bot-update.yml --- .github/workflows/website-bot-update.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/website-bot-update.yml b/.github/workflows/website-bot-update.yml index e02bd7d..265b5b2 100644 --- a/.github/workflows/website-bot-update.yml +++ b/.github/workflows/website-bot-update.yml @@ -35,11 +35,18 @@ jobs: run: | mv docusaurus.config.js docgen.docusaurus.config.js mv original.docusaurus.config.js docusaurus.config.js - - name: Push to repo + - name: Commit changes run: | + git config --global user.email "129876409+sernbot@users.noreply.github.com" + git config --global user.name "sernbot" git add . git commit -m "docs: Update API section" - git push + - name: Push changes + uses: ad-m/github-push-action@v0.8.0 + with: + github_token: ${{ secrets.AUTOMATA_TOKEN }} + branch: 'main' + repository: 'sern-handler/website' community-bot: runs-on: ubuntu-latest steps: @@ -69,4 +76,9 @@ jobs: run: | git add . git commit -m "docs: Update API section" - git push + - name: Push changes + uses: ad-m/github-push-action@v0.8.0 + with: + github_token: ${{ secrets.AUTOMATA_TOKEN }} + branch: 'main' + repository: 'sern-handler/sern-community' From c1a24095fef460d775326384b9d8794726cd5b20 Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Sun, 5 May 2024 21:34:24 +0200 Subject: [PATCH 6/6] Update website-bot-update.yml --- .github/workflows/website-bot-update.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/website-bot-update.yml b/.github/workflows/website-bot-update.yml index 265b5b2..5765226 100644 --- a/.github/workflows/website-bot-update.yml +++ b/.github/workflows/website-bot-update.yml @@ -72,8 +72,10 @@ jobs: cd ${{ github.workspace }} - name: Generate API docs run: typedoc --json ./docs.json --pretty --entryPoints ../sernHandlerV2/src/index.ts --tsconfig ../sernHandlerV2/tsconfig.json --excludeExternals - - name: Push to repo + - name: Add and commit changes run: | + git config --global user.email "129876409+sernbot@users.noreply.github.com" + git config --global user.name "sernbot" git add . git commit -m "docs: Update API section" - name: Push changes