[Bug] Plugin uninstall fails with incorrect user scope error until restart #8959
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: Issue Opened Dispatch | |
| on: | |
| issues: | |
| types: [opened] | |
| permissions: | |
| issues: read | |
| actions: write | |
| jobs: | |
| notify: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 1 | |
| steps: | |
| - name: Process new issue | |
| env: | |
| ISSUE_URL: ${{ github.event.issue.html_url }} | |
| ISSUE_NUMBER: ${{ github.event.issue.number }} | |
| ISSUE_TITLE: ${{ github.event.issue.title }} | |
| TARGET_REPO: ${{ secrets.ISSUE_OPENED_DISPATCH_TARGET_REPO }} | |
| GH_TOKEN: ${{ secrets.ISSUE_OPENED_DISPATCH_TOKEN }} | |
| run: | | |
| gh api repos/${TARGET_REPO}/dispatches \ | |
| -f event_type=issue_opened \ | |
| -f client_payload[issue_url]="${ISSUE_URL}" || { | |
| exit 0 | |
| } |