diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 4f63d416..fe7c6696 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -37,6 +37,11 @@ jobs: cache-dependency-path: | requirements.txt + - name: Debug + run: | + env | sort -f + ls -lart + - name: Get pip cache dir run: | os_version=$(cat /etc/os-release | grep -i "version=" | cut -c9- | tr -d '"' | tr ' ' '_') diff --git a/docs/posts/2023/2023-11-18-Some-nice-CICD-bash-common-scripts.md b/docs/posts/2023/2023-11-18-Some-nice-CICD-bash-common-scripts.md index 36d09dd0..6509fab8 100644 --- a/docs/posts/2023/2023-11-18-Some-nice-CICD-bash-common-scripts.md +++ b/docs/posts/2023/2023-11-18-Some-nice-CICD-bash-common-scripts.md @@ -18,6 +18,8 @@ During CICD, we often have a large log output, it might be nice to have some com Recently, when working with Sonar, I found that they have some scripts for such output formatting. + + - Common scripts: [common.sh](https://github.com/SonarSource/sonarqube-quality-gate-action/blob/master/script/common.sh) - Source common script: [`source "$(dirname "$0")/common.sh"`](https://github.com/SonarSource/sonarqube-quality-gate-action/blob/f9fe214a5be5769c40619de2fff2726c36d2d5eb/script/check-quality-gate.sh#L3C9-L3C9) - Also the Bash testing framework Bats: diff --git a/mkdocs.yml b/mkdocs.yml index 32d93e01..bdeab70b 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -6,6 +6,10 @@ site_name: A code to remember site_url: https://copdips.com use_directory_urls: false +# Use main branch for code actions, default to master branch +# https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/?h=content+action#code-actions +edit_uri: edit/main/docs/ + # Additional configuration extra: analytics: @@ -16,6 +20,8 @@ extra: link: https://github.com/copdips - icon: fontawesome/brands/linkedin link: https://www.linkedin.com/in/xiang-zhu-13769311/ + - icon: material/email + link: mailto:xiang.zhu@outlook.com extra_css: - stylesheets/extra.css extra_javascript: @@ -105,6 +111,7 @@ plugins: date_from_meta: as_creation: date match_path: blog/posts/.* + comments_path: "#__comments" - search: separator: '[\s\u200b\-_,:!=\[\]()"`/]+|\.(?!\d)|&[lg]t;|(?!\b)(?=[A-Z][a-z])' - autorefs @@ -121,6 +128,10 @@ plugins: - glightbox - minify: minify_html: true + - git-committers: + enabled: !ENV [CI, false] + repository: copdips/copdips.github.io + branch: main theme: custom_dir: docs/overrides