diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 4a853af..05b9914 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -49,7 +49,14 @@ on: # pull-requests: read jobs: + check: + runs-on: ubuntu-latest + if: ${{ github.actor != 'dependabot[bot]' || contains(github.event.pull_request.labels.*.name, 'docker') || github.event_name == 'push' }} # ignore the pull request which comes from user depbot. + steps: + - run: | + echo "docker build is required" build: + needs: check runs-on: ubuntu-latest env: GH_ACCESS_TOKEN: ${{ secrets.REPO_PRIVATE_READ_PAT }} diff --git a/.github/workflows/markdown.yaml b/.github/workflows/markdown.yaml index 748836b..0bf8173 100644 --- a/.github/workflows/markdown.yaml +++ b/.github/workflows/markdown.yaml @@ -106,7 +106,7 @@ jobs: run: | git config --global user.name 'Bot' git config --global user.email 'bot@zaphiro.ch' - git commit -am "Automated markdown-lint fixes" || echo "No changes to commit" + git commit -am "Automated markdown-lint fixes [dependabot skip]" || echo "No changes to commit" git push rm -fr vendor # Checks the status of hyperlinks in .md and .MD files in verbose mode (the action is case sensitive and .{MD,md}) diff --git a/.github/workflows/release-notes.yaml b/.github/workflows/release-notes.yaml index 7cc9944..f4e796b 100644 --- a/.github/workflows/release-notes.yaml +++ b/.github/workflows/release-notes.yaml @@ -20,6 +20,11 @@ on: - '*' pull_request_review: pull_request: + types: + - labeled + - unlabeled + - edited + - synchronize branches: - main workflow_call: @@ -182,7 +187,7 @@ jobs: uses: stefanzweifel/git-auto-commit-action@v5 with: branch: ${{github.event.pull_request.head.ref}} - commit_message: 'docs(release_notes): update RELEASE_NOTES.md' + commit_message: 'docs(release_notes): update RELEASE_NOTES.md [dependabot skip]' file_pattern: RELEASE_NOTES.md - name: Commit updated CHANGELOG if: startsWith(github.ref, 'refs/tags/') diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index c6fd7be..d6c40ba 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,11 +1,13 @@ # GitHub Workflows Release Notes -## 0.0.3-dev - 2024-03-04 +## 0.0.3-dev - 2024-03-15 ### Features - golang workflow: skip code coverage if the actor is dependabot (PR #100 by @cosimomeli) +- docker workflow: execute only if the pr actor is not dependabot or labels + contains `docker` (PR #99 by @chicco785) - markdown workflow: run spellcheck only on actually changed \*.md files (PR #96 by @chicco785) - Support different grammar check modalities (local and online) in the script