Skip to content

Commit

Permalink
Excludes dependabot on schema check details,closes #1272
Browse files Browse the repository at this point in the history
  • Loading branch information
rshade committed Jan 7, 2025
1 parent 25a6e1a commit a793751
Show file tree
Hide file tree
Showing 33 changed files with 65 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ jobs:
echo 'EOF' >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
- if: github.event_name == 'pull_request'
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot'
name: Comment on PR with Details of Schema Check
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
Expand Down
2 changes: 1 addition & 1 deletion native-provider-ci/src/steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ export function CommentSchemaChangesOnPR(provider: string): Step {
return {};
}
return {
if: "github.event_name == 'pull_request'",
if: "github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' && github.actor != 'dependabot'",
name: "Comment on PR with Details of Schema Check",
uses: action.prComment,
with: {
Expand Down

0 comments on commit a793751

Please sign in to comment.