Make Gitea checks self-contained
This commit is contained in:
@@ -10,10 +10,13 @@ jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Checkout without an external action
|
||||
run: |
|
||||
set -eu
|
||||
git init .
|
||||
git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git"
|
||||
git fetch --depth=1 origin "$GITHUB_SHA"
|
||||
git checkout --detach FETCH_HEAD
|
||||
|
||||
- name: Check schemas and render example
|
||||
run: |
|
||||
python3 -m pip install -r requirements-dev.txt
|
||||
CARD_LAYOUTS_REQUIRE_JSONSCHEMA=1 python3 scripts/check_repository.py
|
||||
run: python3 scripts/check_repository.py
|
||||
|
||||
Reference in New Issue
Block a user