Skip to content

Commit

Permalink
simplify workflow_dispatch options
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbkoch committed Feb 1, 2025
1 parent 2c0b04f commit b286401
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
ref: ${{ github.event_name == 'workflow_dispatch' ? inputs.commit_id : github.sha }}
- name: Build on Windows
if: startsWith(matrix.image, 'windows')
run: |
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
ref: ${{ github.event_name == 'workflow_dispatch' ? inputs.commit_id : github.sha }}
- uses: actions/setup-node@v4
with:
node-version: '18.x'
Expand All @@ -118,7 +118,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
ref: ${{ github.event_name == 'workflow_dispatch' ? inputs.commit_id : github.sha }}
- uses: actions/setup-node@v4
with:
node-version: '18.x'
Expand All @@ -143,7 +143,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
ref: ${{ github.event_name == 'workflow_dispatch' ? inputs.commit_id : github.sha }}
- name: Build R package
run: |
cd R
Expand All @@ -165,7 +165,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
ref: ${{ github.event_name == 'workflow_dispatch' ? inputs.commit_id : github.sha }}
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -192,7 +192,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
ref: ${{ github.event_name == 'workflow_dispatch' ? inputs.commit_id : github.sha }}
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -239,7 +239,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
ref: ${{ github.event_name == 'workflow_dispatch' ? inputs.commit_id : github.sha }}
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -275,7 +275,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
ref: ${{ github.event_name == 'workflow_dispatch' ? inputs.commit_id : github.sha }}
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -310,7 +310,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
ref: ${{ github.event_name == 'workflow_dispatch' ? inputs.commit_id : github.sha }}
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -417,7 +417,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
ref: ${{ github.event_name == 'workflow_dispatch' ? inputs.commit_id : github.sha }}
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -497,7 +497,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
ref: ${{ github.event_name == 'workflow_dispatch' ? inputs.commit_id : github.sha }}
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -586,7 +586,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
ref: ${{ github.event_name == 'workflow_dispatch' ? inputs.commit_id : github.sha }}
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -668,7 +668,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
ref: ${{ github.event_name == 'workflow_dispatch' ? inputs.commit_id : github.sha }}
- name: Check C++ code formatting with clang-format
id: check_cpp
continue-on-error: true
Expand Down Expand Up @@ -701,7 +701,7 @@ jobs:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
ref: ${{ github.event_name == 'workflow_dispatch' ? inputs.commit_id : github.sha }}
- name: Check python matches ruff format
id: check_python
continue-on-error: true
Expand Down

0 comments on commit b286401

Please sign in to comment.