Skip to content

Commit

Permalink
parameterize rte-france-ortools branch
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Mitri <[email protected]>
  • Loading branch information
pet-mit committed Mar 26, 2024
1 parent 27bee49 commit 80642ee
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 6 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/centos.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: CentOS

on:
workflow_dispatch:
inputs:
rtefrance_ortools_branch:
description: 'rte-france/or-tools branch name'
required: true
default: 'main'
push:
branches:
- main
Expand Down Expand Up @@ -73,7 +79,7 @@ jobs:

- name: Checkout OR-Tools
run: |
git clone $GITHUB_SERVER_URL/rte-france/or-tools.git -b main .
git clone $GITHUB_SERVER_URL/rte-france/or-tools.git -b '${{ github.event.inputs.rtefrance_ortools_branch }}' .
- name: Checkout this repository
run: |
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/oracle.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: OracleLinux

on:
inputs:
rtefrance_ortools_branch:
description: 'rte-france/or-tools branch name'
required: true
default: 'main'
push:
branches:
- main
Expand Down Expand Up @@ -99,7 +104,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: rte-france/or-tools
ref: "main"
ref: '${{ github.event.inputs.rtefrance_ortools_branch }}'

- name: Checkout this repository
uses: actions/checkout@v4
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Ubuntu

on:
inputs:
rtefrance_ortools_branch:
description: 'rte-france/or-tools branch name'
required: true
default: 'main'
push:
branches:
- main
Expand Down Expand Up @@ -43,7 +48,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: rte-france/or-tools
ref: "main"
ref: '${{ github.event.inputs.rtefrance_ortools_branch }}'

- name: Checkout this repository
uses: actions/checkout@v4
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/windows-cpp.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Windows-cpp

on:
inputs:
rtefrance_ortools_branch:
description: 'rte-france/or-tools branch name'
required: true
default: 'main'
push:
branches:
- main
Expand Down Expand Up @@ -34,7 +39,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: rte-france/or-tools
ref: "main"
ref: '${{ github.event.inputs.rtefrance_ortools_branch }}'

- name: Checkout this repository
uses: actions/checkout@v4
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/windows-java-dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Windows Java Dotnet

on:
inputs:
rtefrance_ortools_branch:
description: 'rte-france/or-tools branch name'
required: true
default: 'main'
push:
branches:
- main
Expand Down Expand Up @@ -30,7 +35,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: rte-france/or-tools
ref: "main"
ref: '${{ github.event.inputs.rtefrance_ortools_branch }}'

- name: Checkout this repository
uses: actions/checkout@v4
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/windows-python.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Windows-python

on:
inputs:
rtefrance_ortools_branch:
description: 'rte-france/or-tools branch name'
required: true
default: 'main'
push:
branches:
- main
Expand Down Expand Up @@ -36,7 +41,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: rte-france/or-tools
ref: "main"
ref: '${{ github.event.inputs.rtefrance_ortools_branch }}'

- name: Checkout this repository
uses: actions/checkout@v4
Expand Down

0 comments on commit 80642ee

Please sign in to comment.