pin: fix HASH replacement; full sha in URL, short hash for display
All checks were successful
Pin to IPFS / pin (push) Successful in 10s
All checks were successful
Pin to IPFS / pin (push) Successful in 10s
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
fae9393e8c
commit
753e210b15
1 changed files with 1 additions and 2 deletions
|
|
@ -62,8 +62,7 @@ jobs:
|
|||
git remote add origin https://git.ziemlichoptimal.de/niels/randomp2p.git
|
||||
git fetch --depth 1 origin ${SHA}
|
||||
git checkout FETCH_HEAD
|
||||
SHORT="$(echo "${SHA}" | cut -c1-8)"
|
||||
sed -i "s/HASH/${SHORT}/g" /work/repo/index.html
|
||||
sed -i "s#commit/HASH#commit/${SHA}#; s#>HASH<#>$(echo "${SHA}" | cut -c1-8)<#" /work/repo/index.html
|
||||
rm -rf /work/repo/.git
|
||||
volumeMounts:
|
||||
- { name: work, mountPath: /work }
|
||||
|
|
|
|||
Loading…
Reference in a new issue