Variables no longer seem to work with inline chat #1400
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: On Label | |
on: | |
issues: | |
types: [labeled] | |
permissions: | |
issues: write | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Remove triage-needed label | |
run: | | |
if ! gh issue view ${{ github.event.issue.number }} --repo ${{ github.event.repository.full_name }} --json labels | grep "triage-needed"; then | |
echo "Skipping since triage-needed label is not present" | |
exit 0 | |
fi | |
echo "Removing triage-needed label" | |
gh issue edit ${{ github.event.issue.number }} --remove-label triage-needed --repo ${{ github.repository }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |