Skip to content

Commit 99a5f96

Browse files
committed
chore: Disable CI for pushes by dependabot (it will follow up with a PR)
1 parent 344bb14 commit 99a5f96

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ name: ci
55

66
on:
77
push:
8+
branches-ignore:
9+
- 'dependabot/**'
810
paths-ignore:
911
- '**.gitattributes'
1012
- '**.gitignore'
@@ -38,7 +40,7 @@ jobs:
3840
name: jsonurl-maven-repository
3941
path: snapshot/*
4042
- name: Publish gh-pages
41-
if: ${{ success() && github.repository_owner == 'jsonurl' && github.ref == 'refs/heads/main' }}
43+
if: ${{ success() && github.event.repository.fork == false && github.ref == 'refs/heads/main' }}
4244
run: >
4345
script/deploy_ghpages.sh
4446
'doc: Update by action ${{ github.workflow }}.${{ github.job }}/${{ github.run_id }} on behalf of ${{ github.actor }} for ${{ github.event_name }} ${{ github.sha }}'
@@ -73,7 +75,7 @@ jobs:
7375

7476
snyk:
7577
needs: artifact
76-
if: ${{ needs.artifact.result == 'success' && github.repository_owner == 'jsonurl' && ( github.event_name == 'push' || github.event.pull_request.author_association == 'OWNER' || github.event.pull_request.author_association == 'MEMBER' || github.event.pull_request.author_association == 'COLLABORATOR' ) }}
78+
if: ${{ needs.artifact.result == 'success' && github.event.repository.fork == false && ( github.event_name == 'push' || github.event.pull_request.author_association == 'OWNER' || github.event.pull_request.author_association == 'MEMBER' || github.event.pull_request.author_association == 'COLLABORATOR' ) }}
7779
runs-on: ubuntu-latest
7880
steps:
7981
- uses: actions/checkout@v2
@@ -84,7 +86,7 @@ jobs:
8486

8587
sonarcloud:
8688
needs: artifact
87-
if: ${{ needs.artifact.result == 'success' && github.event.repository.fork == false && github.event.pusher.name != 'dependabot[bot]' && ( github.event_name == 'push' || github.event.pull_request.author_association == 'OWNER' || github.event.pull_request.author_association == 'MEMBER' || github.event.pull_request.author_association == 'COLLABORATOR' ) }}
89+
if: ${{ needs.artifact.result == 'success' && github.event.repository.fork == false && ( github.event_name == 'push' || github.event.pull_request.author_association == 'OWNER' || github.event.pull_request.author_association == 'MEMBER' || github.event.pull_request.author_association == 'COLLABORATOR' ) }}
8890
runs-on: ubuntu-latest
8991
steps:
9092
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)