Skip to content

Commit f3807c4

Browse files
aledbfclaude
andcommitted
ci: propose the node image's newest digest every Monday
The ts-oracle's goldens are only as true as the Node they were made with, and its digest otherwise moves when someone runs versions check. go-tools' versions refresh -propose opens one pull request with what moved and the entry's note; parity:contract's oracle gate is the check of it. Only node is refreshed: golangci-lint is go-tools' version, distroless and go-licenses are checked by a release, which a pull request does not run, and task's note names no check of a move. The pull request is opened with the run's own token, so CI does not start on it by itself: this repository's workflows use no GitHub App. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f8322b3 commit f3807c4

2 files changed

Lines changed: 51 additions & 0 deletions

File tree

‎.github/workflows/refresh.yml‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Every Monday, the newest digest of the node image the ts-oracle runs in, proposed as a pull
2+
# request (task refresh): Node's patch releases change URL parsing, IDNA and JSON.parse messages,
3+
# and a golden is only as true as the Node it was made with. Nothing here merges.
4+
#
5+
# The pull request is opened with this run's own token, which starts no workflow: CI's checks do
6+
# not run on it until a person pushes to it, or closes and reopens it.
7+
name: Refresh
8+
9+
on:
10+
schedule:
11+
- cron: "17 9 * * 1"
12+
workflow_dispatch: {}
13+
14+
concurrency:
15+
group: refresh
16+
cancel-in-progress: false
17+
18+
permissions:
19+
contents: read
20+
21+
jobs:
22+
refresh:
23+
if: github.ref == 'refs/heads/main'
24+
runs-on: ubuntu-latest
25+
timeout-minutes: 10
26+
permissions:
27+
# The refresh branch is pushed with the checkout's credentials, and its pull request opened.
28+
contents: write
29+
pull-requests: write
30+
steps:
31+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
32+
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
33+
with:
34+
go-version-file: go.mod
35+
- name: Propose the pins CI checks at their newest
36+
env:
37+
GITHUB_TOKEN: ${{ github.token }}
38+
# A runner has no git identity, and each moved entry is a commit.
39+
GIT_AUTHOR_NAME: github-actions[bot]
40+
GIT_AUTHOR_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
41+
GIT_COMMITTER_NAME: github-actions[bot]
42+
GIT_COMMITTER_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
43+
run: go tool task refresh

‎Taskfile.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,14 @@ tasks:
398398
go run ./cmd/devtool daily-changed >> "$out"
399399
fi
400400
401+
# Only the entries whose move a pull request's own checks answer: node's, which parity:contract's
402+
# oracle gate holds. golangci-lint is go-tools' version, a person's to move with it; distroless
403+
# and go-licenses are checked by a release, which no pull request runs; task's note names no check.
404+
refresh:
405+
desc: Propose what is behind of the entries CI checks (node) as one pull request; refresh.yml's step, and it pushes and opens a pull request as GITHUB_TOKEN or GH_TOKEN
406+
cmds:
407+
- versions refresh -propose node
408+
401409
clean:
402410
desc: Remove generated artifacts and test containers
403411
cmds:

0 commit comments

Comments
 (0)