Skip to content

Commit

Permalink
Merge pull request #175 from openshift-kni/targeted-commit-check
Browse files Browse the repository at this point in the history
[KNI] ghactions: more specific commit check
  • Loading branch information
ffromani authored Mar 8, 2024
2 parents f78e748 + f0d0d2c commit ae2cf4a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,22 @@ jobs:
with:
fetch-depth: 0

- name: Get branch name (pull request)
- name: Get branch names (pull request)
shell: bash
run: echo "BRANCH_NAME=$(echo ${GITHUB_HEAD_REF} | tr / -)" >> $GITHUB_ENV
run: |
echo "SOURCE_BRANCH_NAME=$(echo ${GITHUB_HEAD_REF} | tr / -)" >> $GITHUB_ENV
echo "TARGET_BRANCH_NAME=$(echo ${GITHUB_BASE_REF} | tr / -)" >> $GITHUB_ENV
- name: Debug
run: echo ${{ env.BRANCH_NAME }}
run: |
echo ${{ env.SOURCE_BRANCH_NAME }}
echo ${{ env.TARGET_BRANCH_NAME }}
- name: Verify commits
run: TRIGGER_BRANCH=${{ env.BRANCH_NAME }} ./hack-kni/verify-commits.sh
run: |
TRIGGER_BRANCH=${{ env.SOURCE_BRANCH_NAME }} \
UPSTREAM_BRANCH=${{ env.TARGET_BRANCH_NAME }} \
./hack-kni/verify-commits.sh
integration-test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ae2cf4a

Please sign in to comment.