Bump actions/setup-dotnet from 4.1.0 to 4.2.0 #60
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: Blocked Issue Labeler | |
on: | |
issues: | |
types: | |
- opened | |
- edited | |
issue_comment: | |
types: | |
- created | |
- edited | |
jobs: | |
add-blocked-label: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Add blocked label if issue is blocked | |
run: | | |
body=$BODY | |
comment=$COMMENT | |
issue_number=${{ github.event.issue.number }} | |
# if body contains "blocked" or comment contains "blocked" | |
# add label "blocked" | |
if [[ "${body,,}" == *"blocked"* ]] || [[ "${comment,,}" == *"blocked"* ]]; then | |
echo "Issue is blocked" | |
echo "Adding blocked label" | |
gh issue edit $issue_number --add-label blocked | |
fi | |
env: | |
BODY: ${{ github.event.issue.body }} | |
COMMENT: ${{ github.event.comment.body }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |