diff --git a/.github/workflows/polish-the-code.yml b/.github/workflows/polish-the-code.yml index 7709d14..f59e461 100644 --- a/.github/workflows/polish-the-code.yml +++ b/.github/workflows/polish-the-code.yml @@ -29,7 +29,7 @@ jobs: # Limit the running time timeout-minutes: 10 steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.head.sha }} # checkout PR HEAD commit fetch-depth: 0 # required for merge-base check diff --git a/action.yml b/action.yml index 1a6b5a3..2d9f5bc 100644 --- a/action.yml +++ b/action.yml @@ -52,7 +52,7 @@ runs: shell: bash - name: Checkout code - uses: actions/checkout@v5 + uses: actions/checkout@v6 with: ref: ${{ github.ref }} # Fetch latest changes (even by previous job) fetch-depth: 0 # Fetch all history for all branches and tags. Otherwise github.event.pull_request.base.ref SHA isn't found.