GeezerVison is showing github.com — start-pre-release: keep the build info table in RUNNER_TEMP for its test · openlogix/.github@b7b3dfc
File treeExpand file treeCollapse file tree Open diff view settings actions/start-pre-release
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/workflows/actions-test.yaml +7-5Lines changed: 7 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -60,11 +60,13 @@ jobs: | 60 | 60 | [ "$RELEASE_TAG" = "$today" ] && [ "$PACKAGE_TAG" = "${today//-/}" ] | 61 | 61 | [ "$REPO" = "$GITHUB_REPOSITORY" ] && [ "$REPO_COMMIT" = "$GITHUB_SHA" ] | 62 | 62 | [ "$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" | 68 | 70 |
| 69 | 71 | # -- read-build-info: the artifact from start-pre-release, the platform, | 70 | 72 | # -- and the environment. | |
Collapse file 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 number | Diff line number | Diff line change |
|---|
@@ -46,7 +46,7 @@ A workflow here that checks what no single repo's CI can see and reports problem | 46 | 46 |
| 47 | 47 | Action details: | 48 | 48 |
| 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. | 50 | 50 | - `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. | 51 | 51 | - `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. | 52 | 52 | - `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 Copy file name to clipboardExpand all lines: actions/start-pre-release/action.yaml +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 91 | 91 | to_entries[] | | 92 | 92 | if .key == "repo-commit" then "| `\(.key)` | [`\(.value)`](\($server)/\(env.REPO)/commit/\(.value)) |" | 93 | 93 | 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" | 95 | 98 |
| 96 | 99 | - name: Upload the build info artifact | 97 | 100 | uses: actions/upload-artifact@v7 | |
|