Skip to content

Commit

Permalink
Fix condition to trigger GitAction workflow (2) (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvacca-onfido authored Feb 27, 2024
1 parent 9da6d21 commit c1ce2a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/generate-single-openapi-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ jobs:
name: Commit and push single-file OpenAPI specifications
runs-on: ubuntu-latest
needs: build-single-spec
if: github.event.pull_request.head.repo.full_name == github.repository
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
- uses: actions/download-artifact@v4
with:
name: artifacts-${{ github.workflow }}-${{ github.run_id }}-${{ github.run_number }}
Expand Down

0 comments on commit c1ce2a4

Please sign in to comment.