GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — start-pre-release: keep the build info table in RUNNER_TEMP for its test · openlogix/.github@b7b3dfc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • actions-test.yaml
  • CLAUDE.md
  • actions/start-pre-release
    • action.yaml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/actions-test.yaml‎

Copy file name to clipboardExpand all lines: .github/workflows/actions-test.yaml
+7-5Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,13 @@ jobs:
6060
[ "$RELEASE_TAG" = "$today" ] && [ "$PACKAGE_TAG" = "${today//-/}" ]
6161
[ "$REPO" = "$GITHUB_REPOSITORY" ] && [ "$REPO_COMMIT" = "$GITHUB_SHA" ]
6262
[ "$OUT_RELEASE" = "$today" ] && [ "$OUT_PACKAGE" = "${today//-/}" ]
63-
# The build info on the run's summary page.
64-
grep -q '^## Build info$' "$GITHUB_STEP_SUMMARY"
65-
grep -qF '| `package-name` | `test-package` |' "$GITHUB_STEP_SUMMARY"
66-
grep -qF '| `test-version` | `1.2.3` |' "$GITHUB_STEP_SUMMARY"
67-
grep -q '| `repo-commit` | \[`'"$GITHUB_SHA"'`\](' "$GITHUB_STEP_SUMMARY"
63+
# The build info table the action adds to the run's summary page
64+
# (each step has its own summary file, so the action keeps a copy).
65+
cat "$RUNNER_TEMP/build-info.md"
66+
grep -q '^## Build info$' "$RUNNER_TEMP/build-info.md"
67+
grep -qF '| `package-name` | `test-package` |' "$RUNNER_TEMP/build-info.md"
68+
grep -qF '| `test-version` | `1.2.3` |' "$RUNNER_TEMP/build-info.md"
69+
grep -q '| `repo-commit` | \[`'"$GITHUB_SHA"'`\](' "$RUNNER_TEMP/build-info.md"
6870
6971
# -- read-build-info: the artifact from start-pre-release, the platform,
7072
# -- and the environment.
Collapse file

‎CLAUDE.md‎

Copy file name to clipboardExpand all lines: CLAUDE.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ A workflow here that checks what no single repo's CI can see and reports problem
4646

4747
Action details:
4848

49-
- `start-pre-release`: the first job of a `build-pre-release` workflow, after checkout. `package-name`, `description`, `extra-fields` (optional JSON object, placed after the description). Today's tags (`yyyy-mm-dd`, `yyyymmdd`), fails if a stable release has that tag, writes `BUILD-INFO.json` (the standard fields: repo, branch, commit, tags, build time, workflow run) and uploads it as the `build-info` artifact, and shows it on the run's summary page as a table of fields (values in code format, the commit linked; the website repo's `CLAUDE.md`, Shared CI, makes that a rule for every build workflow); sets `RELEASE_TAG`, `PACKAGE_TAG`, `REPO`, `REPO_BRANCH`, `REPO_COMMIT` and outputs the two tags.
49+
- `start-pre-release`: the first job of a `build-pre-release` workflow, after checkout. `package-name`, `description`, `extra-fields` (optional JSON object, placed after the description). Today's tags (`yyyy-mm-dd`, `yyyymmdd`), fails if a stable release has that tag, writes `BUILD-INFO.json` (the standard fields: repo, branch, commit, tags, build time, workflow run) and uploads it as the `build-info` artifact, and shows it on the run's summary page as a table of fields (also kept in `$RUNNER_TEMP/build-info.md`, which the test reads, since each step has its own summary file) (values in code format, the commit linked; the website repo's `CLAUDE.md`, Shared CI, makes that a rule for every build workflow); sets `RELEASE_TAG`, `PACKAGE_TAG`, `REPO`, `REPO_BRANCH`, `REPO_COMMIT` and outputs the two tags.
5050
- `read-build-info`: the platform build jobs and the release job. Downloads `BUILD-INFO.json`, optionally adds `target-platform` (`platform`), sets the same five variables.
5151
- `publish-pre-release`: the release job's end. `title`, `links`, `engine-note` (`catalog` or `core`: the "Use it through Logix Engine" note; `release_text.py` holds the one copy of both texts), `content-file` (the repo's own Markdown), `about-bullets`, `files` (the packages). Writes `SHA256SUMS` and the release text in the standard structure (the website repo's `CLAUDE.md`, Release text is user facing), deletes a same-tag pre-release and its tag and makes it again from scratch with the tag at the built commit (fails over a stable release), uploads the files with `BUILD-INFO.json` and `SHA256SUMS`, then deletes older pre-releases by the policy.
5252
- `actions/release-policy.sh`: the pre-release policy, the one place it's set (`PRERELEASE_KEEP=5`: pre-releases are daily, so each is deleted after about 5 days unless made stable). `publish-pre-release` applies it and states it in every release text.
Collapse file

‎actions/start-pre-release/action.yaml‎

Copy file name to clipboardExpand all lines: actions/start-pre-release/action.yaml
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ runs:
9191
to_entries[] |
9292
if .key == "repo-commit" then "| `\(.key)` | [`\(.value)`](\($server)/\(env.REPO)/commit/\(.value)) |"
9393
else "| `\(.key)` | `\(.value | tostring | gsub("\\|"; "\\|"))` |" end' BUILD-INFO.json
94-
} >> "$GITHUB_STEP_SUMMARY"
94+
} > "$RUNNER_TEMP/build-info.md"
95+
# Each step has its own summary file; the table is also kept in
96+
# $RUNNER_TEMP/build-info.md, which the action's test reads.
97+
cat "$RUNNER_TEMP/build-info.md" >> "$GITHUB_STEP_SUMMARY"
9598
9699
- name: Upload the build info artifact
97100
uses: actions/upload-artifact@v7

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.