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: show the build info on the run's summary page · openlogix/.github@7503f42

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • actions-test.yaml
  • CLAUDE.md
  • README.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
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ 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"
6368
6469
# -- read-build-info: the artifact from start-pre-release, the platform,
6570
# -- 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; 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 (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

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Composite actions in [actions/](actions), and one reusable workflow, used from t
3636
3737
| Action | What it does |
3838
| --- | --- |
39-
| `start-pre-release` | A release workflow's start: today's tags, the stable-release check, `BUILD-INFO.json` |
39+
| `start-pre-release` | A release workflow's start: today's tags, the stable-release check, `BUILD-INFO.json`, also shown on the run's summary page |
4040
| `read-build-info` | Gets `BUILD-INFO.json` in a later job, with the platform, into env vars |
4141
| `publish-pre-release` | A release workflow's end: checksums, the standard release text, the day's pre-release made again from scratch, and the cleanup |
4242
| `check-platform` | Fails unless the runner has the given OS and architecture |
Collapse file

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

Copy file name to clipboardExpand all lines: actions/start-pre-release/action.yaml
+19-1Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ description: >-
44
tag (yyyy-mm-dd) and package tag (yyyymmdd), a check that no stable
55
release has that tag (a pre-release with it is replaced later, by
66
publish-pre-release), and BUILD-INFO.json, the build's description,
7-
uploaded as the 'build-info' artifact for the other jobs (read-build-info).
7+
uploaded as the 'build-info' artifact for the other jobs (read-build-info)
8+
and shown as a table on the run's summary page.
89
Sets RELEASE_TAG, PACKAGE_TAG, REPO, REPO_BRANCH and REPO_COMMIT in the
910
environment, and the two tags as outputs. Run it after checking out the
1011
repo.
@@ -75,6 +76,23 @@ runs:
7576
echo "release-tag=$release_tag" >> "$GITHUB_OUTPUT"
7677
echo "package-tag=$package_tag" >> "$GITHUB_OUTPUT"
7778
79+
# The build info on the run's summary page too (the website repo's
80+
# CLAUDE.md, Shared CI: every build workflow shows it there).
81+
- name: Build info in the run's summary
82+
shell: bash
83+
run: |
84+
set -euo pipefail
85+
{
86+
echo "## Build info"
87+
echo
88+
echo "| Field | Value |"
89+
echo "| --- | --- |"
90+
jq -r --arg server "${{ github.server_url }}" '
91+
to_entries[] |
92+
if .key == "repo-commit" then "| `\(.key)` | [`\(.value)`](\($server)/\(env.REPO)/commit/\(.value)) |"
93+
else "| `\(.key)` | `\(.value | tostring | gsub("\\|"; "\\|"))` |" end' BUILD-INFO.json
94+
} >> "$GITHUB_STEP_SUMMARY"
95+
7896
- name: Upload the build info artifact
7997
uses: actions/upload-artifact@v7
8098
with:

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.