Skip to content

Commit

Permalink
Adds AUTHOR_LOGIN test for docs-bot (#47499)
Browse files Browse the repository at this point in the history
  • Loading branch information
subatoi authored Dec 11, 2023
1 parent e3cddc5 commit a2bceb3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ready-for-doc-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ jobs:
- name: Install dependencies
run: npm install @octokit/graphql

- name: Set AUTHOR_LOGIN
run: |
if [[ "${{ github.event.pull_request.assignee.login && github.event.pull_request.user.login == 'docs-bot' }}" ]]; then
echo "AUTHOR_LOGIN=${{ github.event.pull_request.assignee.login }}" >> $GITHUB_ENV
else
echo "AUTHOR_LOGIN=${{ github.event.pull_request.user.login }}" >> $GITHUB_ENV
fi
- name: Run script
run: |
node src/workflows/ready-for-docs-review.js
Expand All @@ -43,7 +51,6 @@ jobs:
PROJECT_NUMBER: 2936
ORGANIZATION: 'github'
ITEM_NODE_ID: ${{ github.event.pull_request.node_id }}
AUTHOR_LOGIN: ${{ github.event.pull_request.user.login }}
REPO: ${{ github.event.pull_request.base.repo.full_name }}

# Since the projects API is still in beta, use the old workflow if something fails
Expand Down

0 comments on commit a2bceb3

Please sign in to comment.