Skip to content

Commit

Permalink
Merge pull request #73 from jwillemsen/jwi-determinebranch
Browse files Browse the repository at this point in the history
Determine the branch for other repositories
  • Loading branch information
jwillemsen authored Oct 20, 2022
2 parents c71f879 + 62fc8ea commit 13a9048
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ env:
X11_BASE_ROOT: ${{ github.workspace }}/axcioma
RIDL_ROOT: ${{ github.workspace }}
TAOX11_ROOT: ${{ github.workspace }}/taox11
X11_BRANCH: master
ACETAOMPC_BRANCH: Latest_ACE7TAO3_Micro

jobs:
build:
Expand Down Expand Up @@ -72,29 +74,37 @@ jobs:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
steps:
- if: contains(fromJson('["pull_request", "pull_request_target"]'), github.event_name) && github.repository_owner == 'RemedyIT'
run: |
echo "X11_BRANCH=${{ github.base_ref }}" >> $GITHUB_ENV
- if: contains(fromJson('["pull_request", "pull_request_target"]'), github.event_name) == false && github.repository_owner == 'RemedyIT'
run: |
echo "X11_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: checkout ACE_TAO
uses: actions/checkout@v3
with:
repository: DOCGroup/ACE_TAO
path: ${{ env.DOC_ROOT }}
ref: Latest_ACE7TAO3_Micro
ref: ${{ env.ACETAOMPC_BRANCH }}
- name: checkout MPC
uses: actions/checkout@v3
with:
repository: DOCGroup/MPC
path: ${{ env.MPC_ROOT }}
ref: Latest_ACE7TAO3_Micro
ref: ${{ env.ACETAOMPC_BRANCH }}
- name: checkout taox11
uses: actions/checkout@v3
with:
repository: RemedyIT/taox11
path: ${{ env.TAOX11_ROOT }}
ref: ${{ env.X11_BRANCH }}
- name: checkout axcioma
uses: actions/checkout@v3
with:
repository: RemedyIT/axcioma
path: ${{ env.X11_BASE_ROOT }}
ref: ${{ env.X11_BRANCH }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand Down

0 comments on commit 13a9048

Please sign in to comment.