Upgrade Go to 1.26 #4
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: Test Issue Close Trigger | |
| permissions: | |
| contents: read | |
| on: | |
| issues: | |
| types: [closed] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Print closed issue info | |
| env: | |
| ISSUE_NUMBER: ${{ github.event.issue.number }} | |
| ISSUE_TITLE: ${{ github.event.issue.title }} | |
| run: | | |
| echo "Issue Number: $ISSUE_NUMBER" | |
| # Prevent workflow command injection from untrusted issue titles | |
| TOKEN=$(uuidgen) | |
| echo "::stop-commands::${TOKEN}" | |
| echo "Title: $ISSUE_TITLE" | |
| echo "::${TOKEN}::" | |
| echo "Workflow triggered successfully when issue was closed." |