diff --git a/.github/workflows/docs-ci.yaml b/.github/workflows/docs-ci.yaml index 2228b4a..1ff45ef 100644 --- a/.github/workflows/docs-ci.yaml +++ b/.github/workflows/docs-ci.yaml @@ -16,12 +16,12 @@ on: jobs: docs-ci: permissions: - # need to provide GH_TOKEN with content/pull-request write premissions + # need to provide GITHUB_TOKEN with content/pull-request write premissions contents: write pull-requests: write runs-on: ubuntu-latest env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # keeping TAG for cases docs repo workflow is triggered with tag input TAG: ${{ inputs.git_tag }} REF_NAME: ${{ github.ref_name }} @@ -31,24 +31,10 @@ jobs: PR_NUMBER: ${{ github.event.number }} PR_TITLE_PREFIX: "task: update documentation for" steps: - - name: Check if PR actor is part of team - env: - ACTOR: ${{ github.actor }} - run: | - response=$(curl -H "Authorization: Bearer $GH_TOKEN" \ - -H "Accept: application/vnd.github+json" \ - "https://api.github.com/orgs/Mellanox/teams/cloud-orchestration/members/$ACTOR") - - if [[ $(echo "$response" | jq -r '.message') == "Not Found" ]]; then - echo "Actor $ACTOR is not part of the 'Mellanox/cloud-orchestration' team and cannot initiate 'Documentation CI' workflow" - exit 1 - else - echo "Actor $ACTOR is part of the 'Mellanox/cloud-orchestration' team" - fi - uses: actions/checkout@v4 with: repository: ${{ github.repository_owner }}/network-operator-docs # repo must be explicitly set here for workflow calling to behave correctly - token: ${{ inputs.token || secrets.GH_TOKEN }} + token: ${{ inputs.token || secrets.GITHUB_TOKEN }} - name: Setup Go uses: actions/setup-go@v5.0.2 with: