Skip to content

Commit

Permalink
add conditional to gh action to select ci runner
Browse files Browse the repository at this point in the history
- set label use_fast_ci on PR to use larger runner, else use default runner
  • Loading branch information
rrotter committed Aug 30, 2023
1 parent 261bf70 commit 25ed2bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest-16core
runs-on: ${{ contains( github.event.pull_request.labels.*.name, 'use_fast_ci') && 'ubuntu-latest-16core' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v3
- name: Run tests
Expand Down

0 comments on commit 25ed2bd

Please sign in to comment.