From fd9db88f48910631c7c0021a4b180a0ca2156131 Mon Sep 17 00:00:00 2001 From: Phred Date: Wed, 6 Oct 2021 12:59:27 -0500 Subject: [PATCH] fixed variable values --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c60af4489f..45bd6aec426 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,18 +42,18 @@ jobs: # running in parallel causes some tests to fail - run: mvn test -B # -T 1C - - env: - BRANCH: ${{ github.ref }} + - name: Parse branch name + env: + BRANCH: ${{ github.head_ref || github.ref }} id: setup run: | - echo "::set-output name=branch-name::${BRANCH#refs/heades/}" - echo "::set-output name=pr-number::$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")" + echo "::set-output name=branch-name::${BRANCH#refs/heads/}" - env: CI_BUILD_NUMBER: ${{ github.run_id }} CI_BUILD_URL: https://github.com/${{ github.repository }}/comit/${{ github.sha }}/checks CI_BRANCH: ${{ steps.setup.output.branch-name }} CI_NAME: github - CI_PULL_REQUEST: ${{ steps.setup.output.pr-number }} + CI_PULL_REQUEST: ${{ github.event.pull_request.number }} run: > mvn jacoco:report