fix: use manual git checkout instead of actions/checkout for Gitea compatibility
Some checks failed
Bash Syntax Check / syntax-check (push) Failing after 0s
Some checks failed
Bash Syntax Check / syntax-check (push) Failing after 0s
This commit is contained in:
@@ -19,10 +19,12 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
syntax-check:
|
syntax-check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: linux,x86_64,docker
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
run: |
|
||||||
|
git clone --depth 1 "$(echo "${{ gitea.server_url }}" | sed "s|://|://oauth2:${{ gitea.token }}@|")/${{ gitea.repository }}.git" .
|
||||||
|
git checkout -q ${{ github.sha }}
|
||||||
|
|
||||||
- name: Install shellcheck
|
- name: Install shellcheck
|
||||||
run: sudo apt-get update && sudo apt-get install -y shellcheck
|
run: sudo apt-get update && sudo apt-get install -y shellcheck
|
||||||
|
|||||||
Reference in New Issue
Block a user