ci: trim release metadata and ClawHub checkouts

This commit is contained in:
Peter Steinberger
2026-07-17 12:00:43 +01:00
parent cb70d7104e
commit c149489703
4 changed files with 48 additions and 14 deletions
+11 -13
View File
@@ -316,23 +316,21 @@ jobs:
matrix:
plugin: ${{ fromJson(needs.preview_plugins_clawhub.outputs.matrix) }}
steps:
- name: Validate target revision
env:
TARGET_SHA: ${{ needs.preview_plugins_clawhub.outputs.ref_revision }}
run: |
if [[ ! "${TARGET_SHA}" =~ ^[a-f0-9]{40}$ ]]; then
echo "ClawHub pack target must be a full lowercase commit SHA; got: ${TARGET_SHA}" >&2
exit 1
fi
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
ref: ${{ github.ref }}
fetch-depth: 0
filter: blob:none
- name: Checkout target revision
env:
TARGET_SHA: ${{ needs.preview_plugins_clawhub.outputs.ref_revision }}
run: |
set -euo pipefail
git fetch --no-tags origin \
+refs/heads/main:refs/remotes/origin/main \
'+refs/heads/release/*:refs/remotes/origin/release/*'
git checkout --detach "${TARGET_SHA}"
ref: ${{ needs.preview_plugins_clawhub.outputs.ref_revision }}
fetch-depth: 1
- name: Setup Node environment
uses: ./.github/actions/setup-node-env