Skip to content

Commit

Permalink
Update diff_comment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
uniqueg authored Oct 29, 2024
1 parent 2f6a18a commit 2ea05ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/diff_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,21 @@ on:
jobs:
comment:
runs-on: ubuntu-latest
if: github.event.workflow_run.outputs.diff_generated
if: github.event.workflow_run.jobs['diff'].steps.upload-log.outputs.artifact_id
permissions:
issues: write
steps:
- name: Get the PR number
id: get_pr_number
run: |
echo "pr_number=$(jq '.workflow_run.pull_requests[0].number' $GITHUB_EVENT_PATH)" >> $GITHUB_OUTPUT
- name: Download diff
uses: actions/download-artifact@v4
with:
name: openapi-diff-log
workflow: 'Lint and validate OpenAPI specs'
workflow: 'Lint and validate OpenAPI specs'

- name: Create PR comment
uses: actions/github-script@v7
with:
Expand Down

0 comments on commit 2ea05ea

Please sign in to comment.