diff --git a/.github/workflows/assign.yml b/.github/workflows/assign.yml index 019ecfc484ca5..a6d3f1f383751 100644 --- a/.github/workflows/assign.yml +++ b/.github/workflows/assign.yml @@ -7,9 +7,8 @@ jobs: one: runs-on: ubuntu-latest steps: - - name: - run: | - if [[ "${{ github.event.comment.body }}" == "take" ]]; then - echo "Assigning issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}" - curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"assignees": ["${{ github.event.comment.user.login }}"]}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees - fi + - if: github.event.comment.body == 'take' + name: + run: | + echo "Assigning issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}" + curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"assignees": ["${{ github.event.comment.user.login }}"]}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees