From dfb2221f0d40110959c2f88974bf8fa8fc7a233d Mon Sep 17 00:00:00 2001 From: Matt Seddon Date: Fri, 21 Oct 2022 13:14:31 +1100 Subject: [PATCH] check values --- .github/workflows/continuous-integration.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 4fab999d5f..8527721a77 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -18,13 +18,19 @@ jobs: runs-on: ubuntu-latest steps: - run: echo ✓ - - run: echo ':weeeee:' build: needs: authorize runs-on: ubuntu-latest timeout-minutes: 20 steps: + - run echo "PR sha ${{ github.event.pull_request.head.sha }}" + - run echo "ref_name ${{ github.ref_name }}" + - run echo "head_ref ${{ github.head_ref }}" + - run echo "ref ${{ github.ref }}" + - run echo "sha ${{ github.sha }}" + - run echo "event_name ${{ github.event_name }}" + - name: Checkout uses: actions/checkout@v3 with: @@ -61,9 +67,8 @@ jobs: - uses: paambaati/codeclimate-action@v3.1.1 env: CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} - GITHUB_EVENT_NAME: - ${{ github.event_name == 'pull_request_target' && 'pull_request' || - github.event_name }} + GIT_COMMIT_SHA: + ${{ github.event.pull_request.head.sha || github.ref }} with: coverageCommand: xvfb-run -a yarn run cover coverageLocations: ${{github.workspace}}/coverage/lcov.info:lcov