diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 60efe4a5dcd..0b3b9475ca6 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -13,7 +13,7 @@ on: jobs: changes: - if: github.event_name == 'pull_request_target' && !contains(fromJSON('["anGie44", "breathingdust", "ewbankkit", "gdavison", "justinretzolk", "maryelizbeth", "YakDriver", "zhelding", "johnsonaj"]'), github.actor) + if: github.event_name == 'pull_request_target' && !contains( secrets.MAINTAINER_LIST, github.actor) name: Filter Changes runs-on: ubuntu-latest outputs: diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml index 0531f794d9e..f09c21b6d9c 100644 --- a/.github/workflows/dependencies.yml +++ b/.github/workflows/dependencies.yml @@ -9,7 +9,7 @@ on: jobs: changes: - if: github.event_name == 'pull_request_target' && !contains(fromJSON('["anGie44", "bflad", "breathingdust", "dependabot[bot]", "DrFaust92", "ewbankkit", "gdavison", "justinretzolk", "maryelizbeth", "YakDriver", "zhelding", "johnsonaj"]'), github.actor) + if: github.event_name == 'pull_request_target' && !contains( secrets.MAINTAINER_LIST, github.actor) name: Filter Changes runs-on: ubuntu-latest outputs: diff --git a/.github/workflows/issue-comment-created.yml b/.github/workflows/issue-comment-created.yml index f15898e3b80..b86bc09d1a0 100644 --- a/.github/workflows/issue-comment-created.yml +++ b/.github/workflows/issue-comment-created.yml @@ -6,7 +6,7 @@ on: jobs: issue_comment_triage: - if: github.event_name == 'issue_comment' && !contains(fromJSON('["anGie44", "bflad", "breathingdust", "dependabot[bot]", "DrFaust92", "ewbankkit", "gdavison", "justinretzolk", "maryelizbeth", "YakDriver", "zhelding", "johnsonaj"]'), github.actor) + if: github.event_name == 'issue_comment' && !contains( secrets.MAINTAINER_LIST, github.actor) runs-on: ubuntu-latest steps: - uses: actions-ecosystem/action-remove-labels@v1 diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml index 78ae3093b0f..9935652bb8c 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/issues.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Apply Issue needs-triage Label - if: github.event.action == 'opened' && !contains(fromJSON('["anGie44", "bflad", "breathingdust", "DrFaust92", "ewbankkit", "gdavison", "justinretzolk", "maryelizbeth", "YakDriver", "zhelding", "johnsonaj"]'), github.actor) + if: github.event.action == 'opened' && !contains( secrets.MAINTAINER_LIST, github.actor) uses: github/issue-labeler@v2.4 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/maintainer-edit.yml b/.github/workflows/maintainer-edit.yml index d0a483585d3..140e1134e35 100644 --- a/.github/workflows/maintainer-edit.yml +++ b/.github/workflows/maintainer-edit.yml @@ -7,7 +7,7 @@ jobs: PermissionsCheck: env: MAINTAINER_CAN_MODIFY: ${{ github.event.pull_request.maintainer_can_modify }} - ALLOW_LISTED: ${{ contains(fromJSON('["anGie44", "breathingdust", "ewbankkit", "gdavison", "johnsonaj", "justinretzolk", "maryelizbeth", "YakDriver", "zhelding"]'), github.actor) }} + ALLOW_LISTED: ${{ contains( secrets.MAINTAINER_LIST, github.actor) }} runs-on: ubuntu-latest steps: - name: Comment if maintainers cannot edit diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index 1d6dc316105..fc26e10415b 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -8,7 +8,7 @@ jobs: steps: - name: Move team PRs to Review column uses: alex-page/github-project-automation-plus@v0.8.1 - if: contains(fromJSON('["anGie44", "breathingdust", "ewbankkit", "gdavison", "maryelizbeth", "YakDriver", "zhelding", "johnsonaj"]'), github.actor) && github.event.pull_request.draft == false + if: contains( secrets.MAINTAINER_LIST, github.actor) && github.event.pull_request.draft == false with: project: AWS Provider Working Board column: Open Maintainer PR diff --git a/.github/workflows/pull_requests.yml b/.github/workflows/pull_requests.yml index c55724f730b..c75bb57fa7f 100644 --- a/.github/workflows/pull_requests.yml +++ b/.github/workflows/pull_requests.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v3 - name: Apply needs-triage Label uses: actions/labeler@v4 - if: github.event.action == 'opened' && !contains(fromJSON('["anGie44", "bflad", "breathingdust", "dependabot[bot]", "DrFaust92", "ewbankkit", "gdavison", "justinretzolk", "maryelizbeth", "YakDriver", "zhelding", "johnsonaj"]'), github.actor) + if: github.event.action == 'opened' && !contains( secrets.MAINTAINER_LIST, github.actor) with: configuration-path: .github/labeler-pr-needs-triage.yml repo-token: ${{ secrets.GITHUB_TOKEN }}