Skip to content
Open
Changes from 1 commit
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
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,17 @@ runs:
with:
node-version: ${{ inputs.node-version }}

- if: ${{ inputs.diff != '' && github.event_name == 'pull_request' }}
shell: bash
run: |
git fetch origin ${{ github.base_ref }} --depth=1
git checkout ${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ inputs.github-token }}

- shell: bash
env:
NO_COLOR: "1"
INPUT_DIRECTORY: ${{ inputs.directory }}
INPUT_VERBOSE: ${{ inputs.verbose }}
INPUT_PROJECT: ${{ inputs.project }}
Expand Down