diff --git a/.gitea/workflows/os.yml b/.gitea/workflows/os.yml index 9f2e715..eaf700e 100644 --- a/.gitea/workflows/os.yml +++ b/.gitea/workflows/os.yml @@ -20,20 +20,12 @@ jobs: os: runs-on: linux permissions: - contents: read packages: write steps: - name: Install tools - run: dnf install -yq mkosi git-core - # gitea-runner 6 removed builtin:checkout. + run: dnf install -yq mkosi - name: Check out - env: - AUTH: "Authorization: token ${{ gitea.token }}" - run: | - git init -q - git -c http.extraHeader="$AUTH" fetch -q --depth 1 \ - "${{ gitea.server_url }}/${{ gitea.repository }}" "${{ gitea.sha }}" - git checkout -q FETCH_HEAD + run: git clone -q --depth 1 -b ${{ gitea.ref_name }} ${{ gitea.server_url }}/${{ gitea.repository }} . - name: Build env: KEY: ${{ secrets.SECUREBOOT_KEY }}