Skip to content

Commit fa851dd

Browse files
mayastor-borsAbhinandan-Purkait
andcommitted
chore(bors): merge pull request #1101
1101: ci: don't comment from crd wf on fork PRs r=Abhinandan-Purkait a=Abhinandan-Purkait - When PRs are raised from fork, the crds workflow fails. Ref:- #1100 Co-authored-by: Abhinandan Purkait <purkaitabhinandan@gmail.com>
2 parents 54c5b6c + a11a22e commit fa851dd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/crds.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
echo "Validation successful: No breaking changes detected."
6969
7070
- name: Check changed files before commenting
71+
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false }}
7172
id: changes
7273
uses: dorny/paths-filter@v3
7374
with:
@@ -76,7 +77,7 @@ jobs:
7677
- 'k8s/**'
7778
7879
- name: Add PR comment to update snapshot if required
79-
if: ${{ success() && github.event_name == 'pull_request' && steps.changes.outputs.crd == 'true' }}
80+
if: ${{ success() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false && steps.changes.outputs.crd == 'true' }}
8081
uses: actions/github-script@v7
8182
with:
8283
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)