From c73911c42215016adc653564edb4ad0810c299f0 Mon Sep 17 00:00:00 2001 From: Xiang ZHU Date: Mon, 11 Dec 2023 21:38:26 +0100 Subject: [PATCH] rename workflow names --- .github/dependabot.yml | 19 ++++ .github/workflows/build_and_deploy.yml | 6 +- .github/workflows/dependabot.yml | 45 -------- .github/workflows/sync-to-gitee.yml | 4 +- ...igrating_from_jekyll_to_mkdocs_material.md | 4 + staticman.yml | 104 ------------------ 6 files changed, 28 insertions(+), 154 deletions(-) create mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/dependabot.yml delete mode 100644 staticman.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..679708c6 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,19 @@ +version: 2 + +updates: + - package-ecosystem: pip + # We only want to bump versions of packages in case of security updates, as + # we want to keep maximum compatibility - see https://t.ly/INSR_ + open-pull-requests-limit: 0 + directory: "/" + labels: [] + schedule: + interval: weekly + time: "04:00" + - package-ecosystem: github-actions + open-pull-requests-limit: 10 + directory: "/" + labels: [] + schedule: + interval: weekly + time: "04:00" diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 8edeeee4..d6915713 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -1,5 +1,5 @@ name: Build and Deploy -run-name: ${{ github.workflow }} - ${{ github.event.head_commit.message }} +run-name: ":+1:${{ github.workflow }} - ${{ github.event.head_commit.message }}" on: push: @@ -55,8 +55,8 @@ jobs: pip install mkdocs-material[recommended,git,imaging] - name: Build documentation - env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} + # env: + # GH_TOKEN: ${{ secrets.GH_TOKEN }} run: | mkdocs build --clean mkdocs --version diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml deleted file mode 100644 index 214a6617..00000000 --- a/.github/workflows/dependabot.yml +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright (c) 2016-2023 Martin Donath - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. - -version: 2 -updates: - - package-ecosystem: npm - open-pull-requests-limit: 10 - directory: "/" - labels: [] - schedule: - interval: weekly - time: "04:00" - - package-ecosystem: pip - # We only want to bump versions of packages in case of security updates, as - # we want to keep maximum compatibility - see https://t.ly/INSR_ - open-pull-requests-limit: 0 - directory: "/" - labels: [] - schedule: - interval: weekly - time: "04:00" - - package-ecosystem: github-actions - open-pull-requests-limit: 10 - directory: "/" - labels: [] - schedule: - interval: weekly - time: "04:00" diff --git a/.github/workflows/sync-to-gitee.yml b/.github/workflows/sync-to-gitee.yml index d80bd9ca..e6f55ce0 100644 --- a/.github/workflows/sync-to-gitee.yml +++ b/.github/workflows/sync-to-gitee.yml @@ -1,5 +1,5 @@ -name: Sync to gitee -run-name: ${{ github.workflow }} - ${{ github.event.head_commit.message }} +name: Gitee Sync +run-name: "[${{ github.workflow }}] - ${{ github.event.head_commit.message }}" on: push: diff --git a/draft/migrating_from_jekyll_to_mkdocs_material.md b/draft/migrating_from_jekyll_to_mkdocs_material.md index b63bbc1d..57686485 100644 --- a/draft/migrating_from_jekyll_to_mkdocs_material.md +++ b/draft/migrating_from_jekyll_to_mkdocs_material.md @@ -13,3 +13,7 @@ Files to include: `./docs/posts` ## Image path Use VSCode replace + +## View Source + +URL bound to `master` branch, not `main` branch. diff --git a/staticman.yml b/staticman.yml deleted file mode 100644 index 61b95925..00000000 --- a/staticman.yml +++ /dev/null @@ -1,104 +0,0 @@ -# Name of the property. You can have multiple properties with completely -# different config blocks for different sections of your site. -# For example, you can have one property to handle comment submission and -# another one to handle posts. -# To encrypt strings use the following endpoint: -# https://{your Staticman API URL}/v[2|3]/encrypt/{TEXT TO BE ENCRYPTED} - -comments: - # (*) REQUIRED - # - # Names of the fields the form is allowed to submit. If a field that is - # not here is part of the request, an error will be thrown. - allowedFields: ["name", "email", "url", "message"] - - # (*) REQUIRED WHEN USING NOTIFICATIONS - # - # When allowedOrigins is defined, only requests sent from one of the domains - # listed will be accepted. The origin is sent as part as the `options` object - # (e.g.