Skip to content

Commit

Permalink
Limit which branch to use
Browse files Browse the repository at this point in the history
    * .github/workflows/fuzzr.yml:
    * .github/workflows/linux.yml:
    * .github/workflows/windows.yml:
  • Loading branch information
jwillemsen committed Oct 19, 2022
1 parent d6dea5a commit d7e0ea3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/fuzzr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ concurrency:

env:
X11_BASE_ROOT: ${{ github.workspace }}/axcioma
X11_BRANCH: v2.2.1_dev

jobs:
build:
runs-on: ubuntu-latest
steps:
- if: contains(fromJson('["pull_request", "pull_request_target"]'), github.event_name)
- 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
- 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@v2
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ env:
X11_BASE_ROOT: ${{ github.workspace }}/axcioma
RIDL_ROOT: ${{ github.workspace }}/ridl
TAOX11_ROOT: ${{ github.workspace }}
X11_BRANCH: v2.2.1_dev
ACETAOMPC_BRANCH: ACE+TAO-7_0_4

jobs:
build:
Expand Down Expand Up @@ -82,10 +84,10 @@ jobs:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
steps:
- if: contains(fromJson('["pull_request", "pull_request_target"]'), github.event_name)
- 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
- 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@v2
Expand All @@ -94,13 +96,13 @@ jobs:
with:
repository: DOCGroup/ACE_TAO
path: ${{ env.DOC_ROOT }}
ref: ACE+TAO-7_0_4
ref: ${{ env.ACETAOMPC_BRANCH }}
- name: checkout MPC
uses: actions/checkout@v2
with:
repository: DOCGroup/MPC
path: ${{ env.MPC_ROOT }}
ref: ACE+TAO-7_0_4
ref: ${{ env.ACETAOMPC_BRANCH }}
- name: checkout ridl
uses: actions/checkout@v2
with:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ env:
X11_BASE_ROOT: ${{ github.workspace }}/axcioma
RIDL_ROOT: ${{ github.workspace }}/ridl
TAOX11_ROOT: ${{ github.workspace }}
X11_BRANCH: v2.2.1_dev
ACETAOMPC_BRANCH: ACE+TAO-7_0_4

jobs:
build:
Expand All @@ -46,10 +48,10 @@ jobs:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} ruby-${{ matrix.ruby }} ${{ matrix.project_type }}
steps:
- if: contains(fromJson('["pull_request", "pull_request_target"]'), github.event_name)
- 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
- 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@v2
Expand All @@ -58,13 +60,13 @@ jobs:
with:
repository: DOCGroup/ACE_TAO
path: ${{ env.DOC_ROOT }}
ref: ACE+TAO-7_0_4
ref: ${{ env.ACETAOMPC_BRANCH }}
- name: checkout MPC
uses: actions/checkout@v2
with:
repository: DOCGroup/MPC
path: ${{ env.MPC_ROOT }}
ref: ACE+TAO-7_0_4
ref: ${{ env.ACETAOMPC_BRANCH }}
- name: checkout ridl
uses: actions/checkout@v2
with:
Expand Down

0 comments on commit d7e0ea3

Please sign in to comment.