CI: restore actions/checkout@v3 for reliable checkout
This commit is contained in:
@@ -39,15 +39,10 @@ jobs:
|
|||||||
name: Validate source
|
name: Validate source
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- uses: actions/checkout@v3
|
||||||
run: |
|
with:
|
||||||
# Build clone URL from server_url + repository
|
fetch-depth: 0
|
||||||
server_url="${{ gitea.server_url }}"
|
clean: true
|
||||||
clone_url="${server_url}"
|
|
||||||
git clone "https://git:${RELEASE_TOKEN}@${clone_url#https://}/${{ gitea.repository }}" .
|
|
||||||
git checkout "${{ github.sha }}"
|
|
||||||
git log --oneline -3
|
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
@@ -89,15 +84,10 @@ jobs:
|
|||||||
target: [linux, windows]
|
target: [linux, windows]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- uses: actions/checkout@v3
|
||||||
run: |
|
with:
|
||||||
# Build clone URL from server_url + repository
|
fetch-depth: 0
|
||||||
server_url="${{ gitea.server_url }}"
|
clean: true
|
||||||
clone_url="${server_url}"
|
|
||||||
git clone "https://git:${RELEASE_TOKEN}@${clone_url#https://}/${{ gitea.repository }}" .
|
|
||||||
git checkout "${{ github.sha }}"
|
|
||||||
|
|
||||||
- name: Setup Python
|
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ env.PYTHON_VERSION }}
|
python-version: ${{ env.PYTHON_VERSION }}
|
||||||
|
|||||||
Reference in New Issue
Block a user