diff --git a/.githooks/commit-msg b/.githooks/commit-msg deleted file mode 100644 index b3cca0c..0000000 --- a/.githooks/commit-msg +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -if [ -z "$1" ]; then - echo "Missing argument (commit message). Did you try to run this manually?" - exit 1 -fi - -commitTitle="$(head -n 1 < "$1")" - -# ignore merge -if echo "$commitTitle" | grep -qE "^Merge"; then - echo "Commit hook: ignoring merge" - exit 0 -fi - -# check commit message -REGEX='^(feat|fix|docs|style|refactor|ci|test|chore|comment)\(.*\)\:.*' -if ! echo "$commitTitle" | grep -qE "${REGEX}"; then - echo "Your commit title '$commitTitle' did not follow conventional commit message rules:" - echo "Please comply with the regex ${REGEX}" - exit 1 -fi diff --git a/.github/workflows/add-on-disable-checkout-test.yml b/.github/workflows/add-on-disable-checkout-test.yml index 783739a..1ab8922 100644 --- a/.github/workflows/add-on-disable-checkout-test.yml +++ b/.github/workflows/add-on-disable-checkout-test.yml @@ -8,8 +8,6 @@ on: pull_request: paths-ignore: - "**.md" - schedule: - - cron: "25 08 * * THU" workflow_dispatch: permissions: diff --git a/.github/workflows/markdown.yml b/.github/workflows/doc-links.yml similarity index 66% rename from .github/workflows/markdown.yml rename to .github/workflows/doc-links.yml index 588e572..e09ab28 100644 --- a/.github/workflows/markdown.yml +++ b/.github/workflows/doc-links.yml @@ -1,13 +1,20 @@ +name: Documentation links + on: workflow_dispatch: + push: + branches: + - main + pull_request: + branches: + - main -name: Markdown files test and update permissions: - contents: write - pull-requests: write + contents: read + jobs: - markdown-test-and-update: - name: Markdown files test and update + markdown-test-links: + name: Markdown test links runs-on: ubuntu-latest steps: - name: Clone sources @@ -30,10 +37,3 @@ jobs: gem install awesome_bot cd sources awesome_bot README.md --skip-save-results --allow-dupe --base-url http://localhost:8080/ --white-list ddev.site - - - uses: technote-space/toc-generator@v4 - with: - MAX_HEADER_LEVEL: 3 - TARGET_PATHS: "README.md" - CHECK_ONLY_DEFAULT_BRANCH: true - CREATE_PR: true diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml index b5891d9..a43294a 100644 --- a/.github/workflows/keepalive.yml +++ b/.github/workflows/keepalive.yml @@ -19,4 +19,4 @@ jobs: - uses: gautamkrishnar/keepalive-workflow@v2 with: time_elapsed: 30 - workflow_files: "add-ons-test.yml,add-on-disable-checkout-test.yml" + workflow_files: "add-ons-test.yml" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d66bed..13e010a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -118,7 +118,7 @@ jobs: echo "$VERSION_RELEASE_NOTES" >> CHANGELOG.txt - name: Create release ${{ env.VERSION_NUMBER }} - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: body_path: CHANGELOG.txt name: ${{ env.VERSION_NUMBER }}