Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker workflow: execute only if the pr actor is not dependabot or labels contains docker #99

Merged
7 changes: 7 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/markdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
run: |
git config --global user.name 'Bot'
git config --global user.email '[email protected]'
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})
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/release-notes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ on:
- '*'
pull_request_review:
pull_request:
types:
- labeled
- unlabeled
- edited
- synchronize
branches:
- main
workflow_call:
Expand Down Expand Up @@ -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/')
Expand Down
Loading