chore: set checkout action for lint similar to compile and test
This commit is contained in:
11
.github/workflows/tests-and-lints-template.yaml
vendored
11
.github/workflows/tests-and-lints-template.yaml
vendored
@@ -89,17 +89,10 @@ jobs:
|
|||||||
- name: Install git
|
- name: Install git
|
||||||
run: sudo apt update && sudo apt install -y git
|
run: sudo apt update && sudo apt install -y git
|
||||||
|
|
||||||
- name: Checkout PR (from fork or branch)
|
- name: Checkout
|
||||||
if: github.event_name == 'pull_request'
|
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||||
with:
|
with:
|
||||||
ref: refs/pull/${{ github.event.pull_request.number }}/head
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
- name: Checkout push branch (main or other)
|
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
|
||||||
with:
|
|
||||||
ref: ${{ github.ref }}
|
|
||||||
|
|
||||||
- name: Setup git to use https
|
- name: Setup git to use https
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user