fix: update actions improved repository checkout configuration
This commit is contained in:
parent
7d926358bc
commit
09d058fb6c
|
|
@ -19,7 +19,12 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
repository: ${{ github.repository }}
|
||||||
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
||||||
|
fetch-depth: 1
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Setup Flutter
|
- name: Setup Flutter
|
||||||
if: github.event.action != 'closed'
|
if: github.event.action != 'closed'
|
||||||
|
|
|
||||||
|
|
@ -26,11 +26,18 @@ jobs:
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
id: checkout_https
|
id: checkout_https
|
||||||
|
with:
|
||||||
|
repository: ${{ github.repository }}
|
||||||
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
||||||
|
fetch-depth: 1
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Checkout repository via SSH (fallback)
|
- name: Checkout repository via SSH (fallback)
|
||||||
if: steps.checkout_https.outcome == 'failure'
|
if: steps.checkout_https.outcome == 'failure'
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
|
repository: ${{ github.repository }}
|
||||||
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
||||||
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
ssh-strict: false
|
ssh-strict: false
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue