Skip to content

Commit

Permalink
ci: bypass team check if it is dependabot (#3472)
Browse files Browse the repository at this point in the history
* ci: bypass team check if it is dependabot

* chore: adding changelog file 3472.maintenance.md

---------

Co-authored-by: pyansys-ci-bot <[email protected]>
  • Loading branch information
germa89 and pyansys-ci-bot authored Oct 8, 2024
1 parent 05128b6 commit 57f66f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ jobs:
- uses: tspascoal/get-user-teams-membership@v3
id: is_organization_member
if: ${{ github.actor != 'dependabot[bot]' }}
with:
username: ${{ steps.get_user.outputs.user }}
organization: ansys
Expand All @@ -385,7 +386,7 @@ jobs:
- id: set-matrix
env:
extended_testing: ${{ github.event_name == 'schedule' || ( github.event_name == 'workflow_dispatch' && inputs.run_all_tests ) || ( github.event_name == 'push' && contains(github.ref, 'refs/tags') ) }}
auth_user: ${{ steps.is_organization_member.outputs.isTeamMember == 'true' }}
auth_user: ${{ steps.is_organization_member.outputs.isTeamMember == 'true' || github.actor == 'dependabot[bot]' }}
run: .ci/build_matrix.sh

build-test-remote:
Expand Down Expand Up @@ -599,6 +600,7 @@ jobs:

- uses: tspascoal/get-user-teams-membership@v3
id: is_organization_member
if: ${{ github.actor != 'dependabot[bot]' }}
with:
username: ${{ github.actor }}
organization: ansys
Expand All @@ -614,7 +616,7 @@ jobs:
RUN_ALL_TEST: ${{ inputs.run_all_tests }}
ON_PUSH: ${{ github.event_name == 'push' }}
HAS_TAG: ${{ contains(github.ref, 'refs/tags') }}
auth_user: ${{ steps.is_organization_member.outputs.isTeamMember == 'true' }}
auth_user: ${{ steps.is_organization_member.outputs.isTeamMember == 'true' || github.actor == 'dependabot[bot]' }}
run: .ci/build_matrix.sh

build-test-ubuntu-local:
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/3472.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ci: bypass team check if it is dependabot

0 comments on commit 57f66f1

Please sign in to comment.