diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 6a3a5d1..d02f97d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -12,16 +12,7 @@ jobs: runs-on: ubuntu-latest container: rust:1 steps: - # Plain git instead of actions/checkout: no dependence on the - # runner resolving external actions or injecting node into the - # container. Works for private repos via the workflow token. - - name: checkout - run: | - git init -q . - git fetch --depth 1 \ - "https://gitea:${{ secrets.GITHUB_TOKEN }}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" \ - "$GITHUB_SHA" - git checkout -q FETCH_HEAD + - uses: actions/checkout@v5 - name: rustfmt run: | rustup component add rustfmt diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 2a3fdd9..1f79170 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -19,14 +19,7 @@ jobs: matrix: target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu] steps: - # Plain git instead of actions/checkout — see ci.yml. - - name: checkout - run: | - git init -q . - git fetch --depth 1 \ - "https://gitea:${{ secrets.GITHUB_TOKEN }}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" \ - "$GITHUB_SHA" - git checkout -q FETCH_HEAD + - uses: actions/checkout@v5 - name: install tooling run: |