Fix CI workflow failure - Remove intentional exit 1 #12
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
| on: issue_comment | |
| jobs: | |
| copilot: | |
| if: ${{ startsWith(github.event.comment.body, '/copilot') }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Remove the /copilot prefix | |
| id: sanitize | |
| run: | | |
| modified_comment=$(echo "${{ github.event.comment.body }}" | sed 's/\/copilot//') | |
| echo "prompt=${modified_comment}" >> "$GITHUB_OUTPUT" | |
| - name: Run Copilot | |
| uses: austenstone/copilot-cli-actions/.github/actions/copilot@main | |
| with: | |
| github-token: ${{ secrets.PAT }} | |
| prompt: | | |
| ${{ steps.sanitize.outputs.prompt }} | |
| At the start, acknowledge the issue comment by reacting with an emoji. | |
| Once you have completed your task, please summarize the outcome and any relevant details by responding to the comment. | |