Skip to content

Commit

Permalink
add specifying a commit ID an option in the manual trigger CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbkoch committed Aug 1, 2024
1 parent 429efe7 commit 4a83569
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
push:
pull_request:
workflow_dispatch:
inputs:
commit_id:
description: 'Commit ID (optional)'
required: false
schedule:
- cron: "0 12 * * *"

Expand Down Expand Up @@ -50,6 +54,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
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 @@ -89,6 +95,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
- uses: actions/setup-node@v4
with:
node-version: '18.x'
Expand All @@ -108,6 +116,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
- uses: actions/setup-node@v4
with:
node-version: '18.x'
Expand All @@ -130,6 +140,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
- name: Build R package
run: |
cd R
Expand All @@ -150,6 +162,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -173,6 +187,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
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 @@ -218,6 +234,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
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 @@ -251,6 +269,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
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 @@ -337,6 +357,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
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 @@ -415,6 +437,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
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 @@ -509,6 +533,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
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 @@ -563,6 +589,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
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 @@ -592,6 +620,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.commit_id || github.sha }}
- name: Check python matches black format
id: check_python
continue-on-error: true
Expand Down

0 comments on commit 4a83569

Please sign in to comment.