From 57f66f14650f28fc7a673c79a5dc46e451815390 Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:20:18 +0200 Subject: [PATCH] ci: bypass team check if it is dependabot (#3472) * ci: bypass team check if it is dependabot * chore: adding changelog file 3472.maintenance.md --------- Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> --- .github/workflows/ci.yml | 6 ++++-- doc/changelog.d/3472.maintenance.md | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 doc/changelog.d/3472.maintenance.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 543cc91b08..ae1ab4d60f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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: @@ -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 @@ -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: diff --git a/doc/changelog.d/3472.maintenance.md b/doc/changelog.d/3472.maintenance.md new file mode 100644 index 0000000000..611a7b7bbc --- /dev/null +++ b/doc/changelog.d/3472.maintenance.md @@ -0,0 +1 @@ +ci: bypass team check if it is dependabot \ No newline at end of file