File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -95,23 +95,23 @@ jobs:
9595 else
9696 label="Manual ($base)"
9797 fi
98- # Try to read metadata for time and full sha
99- TIME=""; FULL_SHA="";
98+ # Try to read metadata for time and full sha
99+ TIME=""; FULL_SHA="";
100100 if [ -f "$OUTDIR/$dir/metadata.json" ]; then
101101 TIME=$(sed -n 's/.*"time"[[:space:]]*:[[:space:]]*"\(.*\)".*/\1/p' "$OUTDIR/$dir/metadata.json" | head -n1)
102102 FULL_SHA=$(sed -n 's/.*"sha"[[:space:]]*:[[:space:]]*"\(.*\)".*/\1/p' "$OUTDIR/$dir/metadata.json" | head -n1)
103103 fi
104104 short=${base#sha-}
105105 cmd="git checkout ${FULL_SHA:-$short}"
106- if [ -n "$TIME" ]; then
106+ if [ -n "$TIME" ]; then
107107 echo "- [$label]($dir/) — $TIME — \`$cmd\`" >> "$HISTORY_FILE_MD"
108108 else
109109 echo "- [$label]($dir/) — \`$cmd\`" >> "$HISTORY_FILE_MD"
110110 fi
111111 done <<< "$EXISTING_INDEXES"
112112 fi
113113 # Add current run at the top
114- echo "- [Current Run]($SUBPATH/) — $COMMIT_TIME — \`git checkout $GITHUB_SHA\`" | cat - "$HISTORY_FILE_MD" > "$HISTORY_FILE_MD.tmp" && mv "$HISTORY_FILE_MD.tmp" "$HISTORY_FILE_MD"
114+ echo "- [Current Run]($SUBPATH/) — $COMMIT_TIME — \`git checkout $GITHUB_SHA\`" | cat - "$HISTORY_FILE_MD" > "$HISTORY_FILE_MD.tmp" && mv "$HISTORY_FILE_MD.tmp" "$HISTORY_FILE_MD"
115115
116116 # Build index.md from root README plus quick links
117117 INDEX_MD="$OUTDIR/index.md"
You can’t perform that action at this time.
0 commit comments