Skip to content

Commit

Permalink
fix: run pipeline only on intershop account (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
jometzner authored Mar 8, 2021
1 parent bcc0401 commit f0c3255
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/azure-devops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
jobs:
CancelPrevious:
runs-on: ubuntu-latest

steps:
- name: Cancel Old Pipeline
uses: rokroskar/workflow-run-cleanup-action@master
Expand All @@ -18,6 +17,7 @@ jobs:

Build:
needs: CancelPrevious
if: ${{ github.event.repository.owner.login == 'intershop' }}
runs-on: ubuntu-latest
steps:
- name: Azure Pipelines Action
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:

BuildNDeployReports:
needs: [CancelPrevious]
if: ${{ github.event.repository.owner.login == 'intershop' }}
runs-on: ubuntu-latest
environment:
name: PWA Reports
Expand Down

0 comments on commit f0c3255

Please sign in to comment.