mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Fixed duplicate workflow executions on PRs
- if we push to a branch, and open a PR, we'll get duplicate executions - this fixes that by adding the same check we have elsewhere in the workflow
This commit is contained in:
parent
7e6c0ec87e
commit
f2c2e7f687
1 changed files with 3 additions and 1 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -27,6 +27,7 @@ jobs:
|
|||
job_get_metadata:
|
||||
name: Metadata
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
|
||||
permissions:
|
||||
pull-requests: read
|
||||
steps:
|
||||
|
@ -99,6 +100,7 @@ jobs:
|
|||
job_install_deps:
|
||||
name: Install Dependencies
|
||||
needs: job_get_metadata
|
||||
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
|
@ -770,7 +772,7 @@ jobs:
|
|||
job_comments_ui,
|
||||
job_signup_form,
|
||||
]
|
||||
if: always()
|
||||
if: always() && (github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/')))
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check for failures
|
||||
|
|
Loading…
Reference in a new issue