Bump org.json:json from 20240303 to 20241224 #1
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 Label on Comment | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
auto-label: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Add label # Credit: Copilot | |
run: | | |
AUTHOR=${{ github.event.comment.user.login }} | |
COMMENT_BODY=${{ github.event.comment.body }} | |
if [[ "${COMMENT_BODY,,}" =~ ^superseded\ by.* ]] && [[ "$AUTHOR" == "dependabot" || "$(gh api user/$AUTHOR | jq -r '.site_admin')" == "true" ]]; then | |
gh auth login --with-token $GITHUB_TOKEN | |
gh issue edit ${{ github.event.issue.id }} --add-label "status: Superseded" | |
fi | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |