Skip to content

Commit

Permalink
fix: prevent excess ci runs
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Apr 8, 2024
1 parent 5a07864 commit f88ffc1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/smoketest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,19 @@ jobs:
runs-on: ubuntu-latest
name: Test, build and deploy

if:
${{ !contains(github.event_name, 'pull_request') || ((github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.fork && contains(github.event.label.name, '🚀 request deploy'))) }}

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.head.ref || github.ref }}
cancel-in-progress: true

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}

- name: Find existing build status comment
continue-on-error: true
Expand Down Expand Up @@ -161,7 +167,7 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: ['🚀 request deploy']
name: ['🚀request-deploy']
})
- name: Find existing build status comment
Expand Down

0 comments on commit f88ffc1

Please sign in to comment.