Warestack Copilot #8
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: Process Workflow Logs | |
on: | |
workflow_run: | |
workflows: ['Continuous Integration'] # Name of the primary workflow | |
types: | |
- completed | |
jobs: | |
process-logs: | |
runs-on: ubuntu-latest | |
steps: | |
# Runs the action located at the root of the repository. | |
- name: Run Local Action | |
id: copilot | |
uses: ./ | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
openai-api-key: ${{ secrets.OPENAI_API_KEY }} | |
workflow-run-id: ${{ github.event.workflow_run.id }} # ID of the completed workflow run | |
# Print URL of the created GitHub Issue if any issue is created | |
- name: Print Issue URL | |
run: echo "${{ steps.copilot.outputs.issue-url }}" | |
# Print URL of the created GitHub PR if any PR is created | |
- name: Print PR URL | |
run: echo "${{ steps.copilot.outputs.pr-url }}" |