The runner failed resolving/running the external checkout action; a git fetch of GITHUB_SHA with the workflow token needs neither action resolution nor a node runtime in the job container, and works against the private repo. Also document that a bare `cargo release` tags the current version (the path for 0.1.0, which is already the workspace version). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
1619285ce0
commit
19fb9de7d9
+10
-1
@@ -12,7 +12,16 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
container: rust:1
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# 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
|
||||
- name: rustfmt
|
||||
run: |
|
||||
rustup component add rustfmt
|
||||
|
||||
@@ -19,7 +19,14 @@ jobs:
|
||||
matrix:
|
||||
target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# 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
|
||||
|
||||
- name: install tooling
|
||||
run: |
|
||||
|
||||
@@ -75,7 +75,8 @@ with `--no-default-features` for systems without it.
|
||||
## Releasing
|
||||
|
||||
```console
|
||||
$ cargo release patch # or minor / major — see release.toml
|
||||
$ cargo release # tag + push the current version as-is
|
||||
$ cargo release patch # or minor / major to bump first — release.toml
|
||||
```
|
||||
|
||||
This bumps the workspace version, tags `vX.Y.Z`, and pushes; the tag
|
||||
|
||||
Reference in New Issue
Block a user