Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,17 @@ jobs:
- name: Get libc version
run: ldd --versio

- name: Get branch name for pull request
if: ${{ github.event_name == 'pull_request' }}
run: |
echo "GIT_BRANCH=$GITHUB_BASE_REF" >> $GITHUB_ENV

- name: Get branch name for push
- name: Get branch name to match with other repos for push
if: ${{ github.event_name == 'push' }}
run: |
echo "GIT_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
echo "GIT_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV

- name: Get branch name to match with other repos for pull_request
if: ${{ github.event_name == 'pull_request' }}
run: |
echo "GIT_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
echo "DEFAULT_BRANCH=$GITHUB_BASE_REF" >> $GITHUB_ENV

- name: Determine branches for other repos
shell: bash {0}
run: |
Expand Down Expand Up @@ -204,16 +205,17 @@ jobs:
echo "RAPIDJSONDIR=$RAPIDJSONDIR" >> $GITHUB_ENV
SAMNTDIR=$GITHUB_WORKSPACE/sam
echo "SAMNTDIR=$SAMNTDIR" >> $GITHUB_ENV

- name: Get branch name to match with other repos for push
if: ${{ github.event_name == 'push' }}
run: |
echo "GIT_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV

- name: Get branch name for pull request
- name: Get branch name to match with other repos for pull_request
if: ${{ github.event_name == 'pull_request' }}
run: |
echo "GIT_BRANCH=$GITHUB_BASE_REF" >> $GITHUB_ENV

- name: Get branch name for push
if: ${{ github.event_name == 'push' }}
run: |
echo "GIT_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
echo "GIT_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
echo "DEFAULT_BRANCH=$GITHUB_BASE_REF" >> $GITHUB_ENV

- name: Determine branches for other repos
shell: bash {0}
Expand Down