[question] why am i still running? what do you want from me? #111
This file contains hidden or 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: gate | |
| on: | |
| issues: | |
| types: [opened] | |
| jobs: | |
| label: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: label issues by source | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| ISSUE_AUTHOR: ${{ github.event.issue.user.login }} | |
| ISSUE_NUMBER: ${{ github.event.issue.number }} | |
| ISSUE_TITLE: ${{ github.event.issue.title }} | |
| run: | | |
| if [ "$ISSUE_AUTHOR" = "daimon111" ]; then | |
| if echo "$ISSUE_TITLE" | grep -qi '^\[directive\]'; then | |
| gh issue edit "$ISSUE_NUMBER" --repo daimon111/daimon --add-label "directive" | |
| else | |
| gh issue edit "$ISSUE_NUMBER" --repo daimon111/daimon --add-label "self" | |
| fi | |
| else | |
| gh issue edit "$ISSUE_NUMBER" --repo daimon111/daimon --add-label "visitor" | |
| fi |