diff --git a/.github/workflows/docs-commands-generate.yml b/.github/workflows/docs-commands-update.yml similarity index 75% rename from .github/workflows/docs-commands-generate.yml rename to .github/workflows/docs-commands-update.yml index 918a6db..959ca29 100644 --- a/.github/workflows/docs-commands-generate.yml +++ b/.github/workflows/docs-commands-update.yml @@ -1,4 +1,4 @@ -name: Generate commands documentation +name: Generate, update commands documentation on: push: @@ -7,7 +7,8 @@ on: - hotfix/* jobs: - docs-commands-generate: + docs-commands-update: + if: "!contains(github.event.head_commit.message, '[skip docs commands generate]')" runs-on: ubuntu-22.04 steps: - name: Checkout @@ -28,7 +29,7 @@ jobs: version: v1.23.0 args: build --clean --skip=validate - - name: Generate and commit new commands documentation + - name: Update and commit new commands documentation run: | echo "Configure Git user.name and user.email." git config user.name github-actions @@ -37,7 +38,7 @@ jobs: echo "Generate new commands documentation." ./dist/rmk_linux_amd64_v1/rmk doc generate > ./docs/commands.md - if (git commit --all --message="[skip ci] Update commands documentation"); then + if (git commit --all --message="[skip docs commands update] Update commands documentation"); then git push echo "The new commands documentation has been committed." fi diff --git a/.github/workflows/docs-publish.yaml b/.github/workflows/docs-publish.yaml index ee0460b..2e2e7f5 100644 --- a/.github/workflows/docs-publish.yaml +++ b/.github/workflows/docs-publish.yaml @@ -12,7 +12,7 @@ on: - 'v[0-9]+.[0-9]+.[0-9]+' jobs: - publish: + docs-publish: name: Build, validate, publish, version documentation for GitHub Pages runs-on: ubuntu-22.04 steps: