Skip to content

Commit

Permalink
Update mv3 docs automatically in each branch
Browse files Browse the repository at this point in the history
Merge in ADGUARD-FILTERS/tsurlfilter from feature/update-mv3-docs-automatically-2 to master

Squashed commit of the following:

commit 1e45e19
Merge: a83b72d d3c4df8
Author: Dmitriy Seregin <[email protected]>
Date:   Tue Oct 8 18:10:20 2024 +0300

    Merge branch 'master' into feature/update-mv3-docs-automatically-2

commit a83b72d
Author: Dmitriy Seregin <[email protected]>
Date:   Tue Oct 8 15:44:05 2024 +0300

    ignore pnpm cache folder

commit f7e7759
Author: Dmitriy Seregin <[email protected]>
Date:   Tue Oct 8 14:17:08 2024 +0300

    fix

commit f896438
Author: Dmitriy Seregin <[email protected]>
Date:   Tue Oct 8 14:16:30 2024 +0300

    Update MV3 docs automatically in each branch
  • Loading branch information
105th committed Oct 8, 2024
1 parent d3c4df8 commit dfed614
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ node_modules
# VS code settings and workspace project
.vscode
tsurlfilter.code-workspace

# PNPM cache folder
.pnpm-store
25 changes: 25 additions & 0 deletions bamboo-specs/scripts/tsurlfilter-update-docs-mv3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

# 'set' should be added to the beginning of each script to ensure that it runs with the correct options.
# Please do not move it to some common file, like `setup-tests.sh`, because sourcing A script from B script
# cannot change the options of B script.
# -e: Exit immediately if any command exits with a non-zero status (i.e., if a command fails).
# -x: Print each command to the terminal as it is executed, which is useful for debugging.
set -ex

# Redirect stderr (2) to stdout (1) to capture all output in a single log
exec 2>&1

echo "@adguard/tsurlfilter docs mv3 update starting"

# import helper functions and some common variables
. ./bamboo-specs/scripts/helpers.sh

# Install dependencies
pnpm install

# Build with dependencies, lerna is used for builds caching, because
# we specified dependencies with workspace links.
npx lerna run build,docs:mv3 --scope @adguard/tsurlfilter --include-dependencies

echo "@adguard/tsurlfilter docs mv3 updated"
9 changes: 9 additions & 0 deletions bamboo-specs/tsurlfilter-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ Test:
interpreter: SHELL
scripts:
- bamboo-specs/scripts/tswebextension-tests.sh
- script:
interpreter: SHELL
scripts:
- bamboo-specs/scripts/tsurlfilter-update-docs-mv3.sh
- any-task:
plugin-key: com.atlassian.bamboo.plugins.vcs:task.vcs.commit
configuration:
commitMessage: 'skipci: Automatic update tsurlfilter MV3 docs'
selectedRepository: defaultRepository
artifacts:
- name: examples-adguard-api-extension.zip
location: packages/examples/adguard-api/build
Expand Down

0 comments on commit dfed614

Please sign in to comment.