chore(deps): update dependency pytest-env to v1.1.3 #815
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: auto-assign | |
on: | |
pull_request: | |
jobs: | |
assign: | |
name: Set assignees | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set assignees | |
run: | | |
assignee_count=$(jq '.pull_request.assignees | length' "${{ github.event_path }}") | |
echo "$assignee_count" | |
if [[ "0" = "$assignee_count" ]]; then | |
curl -X POST \ | |
-H "Content-Type: application/json" \ | |
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | |
-d "{ \"assignees\": [\"${{ github.actor }}\"] }" \ | |
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/assignees" | |
fi |