Skip to content

Commit

Permalink
[chore] skip all jobs on PRs created by dependabot (#17780)
Browse files Browse the repository at this point in the history
There are still a few CI actions triggered by PRs created by dependabot. Since those PRs will never be merged, there's no point in running any actions for them.

Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
Alex Boten authored Jan 16, 2023
1 parent 8bcfb09 commit e857f00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
- name: Lint
run: make -j2 golint GROUP=${{ matrix.group }}
lint:
if: ${{ always() }}
if: ${{ github.actor != 'dependabot[bot]' && always() }}
runs-on: ubuntu-latest
needs: [setup-environment, lint-matrix]
steps:
Expand Down Expand Up @@ -241,7 +241,7 @@ jobs:
test_path: |
./**/foresight-test*.txt
unittest:
if: ${{ always() }}
if: ${{ github.actor != 'dependabot[bot]' && always() }}
strategy:
matrix:
go-version: [1.19, 1.18]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ping-codeowners-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
ping-owners:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'open-telemetry' }}
if: ${{ github.actor != 'dependabot[bot]' && github.repository_owner == 'open-telemetry' }}
steps:
- uses: actions/checkout@v3

Expand Down

0 comments on commit e857f00

Please sign in to comment.