File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -55,15 +55,14 @@ jobs:
55
55
runs-on : ubuntu-latest
56
56
environment : Package Check
57
57
steps :
58
- - name : Count how many commits need to be fetched
59
- id : base-depth
60
- run : echo "base-depth=$(expr ${{ github.event.pull_request.commits }} + 1)" >> $GITHUB_OUTPUT
61
58
- uses : actions/checkout@v4
62
59
with :
63
60
ref : ${{ github.event.pull_request.head.sha }}
64
- fetch-depth : ${{ steps.base-depth.outputs.base-depth }}
65
- - name : Fetch necessary Git objects
61
+ fetch-depth : 0
62
+ - name : Rebase branch before linting
66
63
run : |
64
+ git config user.name "github-actions[bot]"
65
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
67
66
pr_head=$(/usr/bin/git log -1 --format=%H)
68
67
git fetch origin ${{ github.base_ref }}
69
68
git checkout ${{ github.base_ref }}
You can’t perform that action at this time.
0 commit comments