Copy to clipboard often does not work (Clipboard write was blocked due to lack of user activation) #6
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" | |
| on: | |
| issues: | |
| types: [opened] | |
| jobs: | |
| issue: | |
| name: "Issue" | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: "Checkout" | |
| uses: actions/checkout@v4 | |
| - name: "Debug Issue" | |
| env: | |
| NUMBER: ${{ github.event.issue.number }} | |
| TITLE: ${{ github.event.issue.title }} | |
| BODY: ${{ github.event.issue.body }} | |
| run: | | |
| echo Issue number: '${{ env.NUMBER }}' | |
| echo Issue title: '${{ env.TITLE }}' | |
| echo Issue body: '${{ env.BODY }}' | |
| - name: "Setup Node 22" | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: "Install" | |
| run: | | |
| npm install | |
| - name: "Parse Issue" | |
| id: issue | |
| uses: cssnr/parse-issue-form-action@master | |
| with: | |
| body: ${{ github.event.issue.body }} | |
| - name: "Debug Parsed Issue" | |
| run: | | |
| echo Site Link: '${{ steps.issue.outputs.site_link }}' | |
| echo Details: '${{ steps.issue.outputs.details }}' | |
| echo Support Information: '${{ steps.issue.outputs.support_information }}' | |
| - name: "Process Issue" | |
| env: | |
| URL: ${{ steps.issue.outputs.site_link }} | |
| run: | | |
| npm run issue | |
| - name: "Debug Files" | |
| run: | | |
| ls -lah tests/screenshots | |
| - name: "Upload Image" | |
| id: image | |
| uses: McCzarny/[email protected] | |
| with: | |
| path: tests/screenshots/links.png | |
| uploadMethod: imgbb | |
| apiKey: ${{ secrets.IMGBB_API_KEY }} | |
| - name: "Read Logs" | |
| id: logs | |
| uses: juliangruber/read-file-action@v1 | |
| with: | |
| path: tests/screenshots/logs.txt | |
| - name: "Debug Logs" | |
| run: echo "${{ steps.logs.outputs.content }}" | |
| - name: "Add Comment" | |
| run: gh issue comment "$NUMBER" --body "$BODY" | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GH_REPO: ${{ github.repository }} | |
| NUMBER: ${{ github.event.issue.number }} | |
| BODY: | | |
| Link Extractor Results for: [${{ steps.issue.outputs.site_link }}](${{ steps.issue.outputs.site_link }}) | |
|  | |
| Logs: | |
| ```json | |
| ${{ steps.logs.outputs.content }} | |
| ``` |