Skip to content

Commit

Permalink
attempt to mutate sha and ref for action
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed Oct 21, 2022
1 parent 0af92c1 commit 4b61c57
Show file tree
Hide file tree
Showing 2 changed files with 840 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Dump GitHub context
id: github_context_step
run: echo '${{ toJSON(github) }}'

- name: Checkout
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -64,9 +60,12 @@ 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 }}
GITHUB_SHA:
${{ github.event_name == 'pull_request_target' &&
github.event.pull_request.head.sha || github.sha }}
GITHUB_REF:
${{ github.event_name == 'pull_request_target' &&
github.event.pull_request.head.ref || github.ref }}
with:
coverageCommand: xvfb-run -a yarn run cover
coverageLocations: ${{github.workspace}}/coverage/lcov.info:lcov
Expand Down

0 comments on commit 4b61c57

Please sign in to comment.