Skip to content

Commit

Permalink
chore[CI]: checkout experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorres committed Jul 18, 2024
1 parent d93965b commit a61411d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/actions/smart-checkout/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ runs:
using: 'composite'
steps:
- name: checkout-when-fork-source
uses: actions/checkout@v3
uses: actions/checkout@v4
if: github.event.pull_request.head.sha != ''
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: checkout-when-this-repo-source
uses: actions/checkout@v3
uses: actions/checkout@v4
if: github.event.pull_request.head.sha == ''
13 changes: 6 additions & 7 deletions .github/workflows/run-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: .github

# with:
# sparse-checkout: .github
- name: smart-checkout
uses: ./.github/actions/smart-checkout
- name: golangci-lint
Expand All @@ -35,8 +34,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: .github
# with:
# sparse-checkout: .github
- name: smart-checkout
uses: ./.github/actions/smart-checkout

Expand All @@ -63,8 +62,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: .github
# with:
# sparse-checkout: .github
- name: smart-checkout
uses: ./.github/actions/smart-checkout
- name: Install Go
Expand Down

0 comments on commit a61411d

Please sign in to comment.