Skip to content

Commit

Permalink
check if actor is not dependabot and label is not docker
Browse files Browse the repository at this point in the history
  • Loading branch information
chicco785 authored Feb 28, 2024
1 parent 1414059 commit 69d81ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ on:
# pull-requests: read

jobs:
check:
runs-on: ubuntu-latest
if: ${{ github.actor!= 'dependabot[bot]' || contains(github.event.pull_request.labels.*.name, 'docker') || startsWith(github.ref, 'refs/tags/') }} # ignore the pull request which comes from user depbot.
build:
needs: check
runs-on: ubuntu-latest
env:
GH_ACCESS_TOKEN: ${{ secrets.REPO_PRIVATE_READ_PAT }}
Expand Down

0 comments on commit 69d81ef

Please sign in to comment.