Skip to content

Commit 2cf0990

Browse files
Add daily release-binaries build
1 parent ef2c921 commit 2cf0990

File tree

4 files changed

+45
-4
lines changed

4 files changed

+45
-4
lines changed

.github/workflows/lint-docs-weekly.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: Weekly check all Markdown links
22

33
on:
44
schedule:
5-
- cron: "0 12 * * 4"
5+
# Cron for every Monday at 12:00 UTC.
6+
- cron: "0 12 * * 1"
67

78
# Remove all permissions from GITHUB_TOKEN except metadata.
89
permissions: {}

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ jobs:
2121
with:
2222
fetch-depth: 0
2323
- name: Calculate go version
24-
id: vars
25-
run: echo "go_version=$(make go-version)" >> $GITHUB_OUTPUT
24+
run: echo "go_version=$(make go-version)" >> $GITHUB_ENV
2625
- name: Set up Go
2726
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # tag=v3.5.0
2827
with:
29-
go-version: ${{ steps.vars.outputs.go_version }}
28+
go-version: ${{ env.go_version }}
3029
- name: generate release artifacts
3130
run: |
3231
make release

.github/workflows/scan.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: scan-images
22

33
on:
44
schedule:
5+
# Cron for every Monday at 12:00 UTC.
56
- cron: "0 12 * * 1"
67

78
# Remove all permissions from GITHUB_TOKEN except metadata.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release test
2+
3+
# Note: This workflow does not build for releases. It attempts to build release binaries daily to ensure the repo
4+
# is in a good state.
5+
6+
on:
7+
schedule:
8+
# Cron for every day at 12:00 UTC.
9+
- cron: "0 12 * * *"
10+
11+
# Remove all permissions from GITHUB_TOKEN except metadata.
12+
permissions: {}
13+
14+
jobs:
15+
weekly-test-release:
16+
name: Test release
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
branch: [ main, release-1.3, release-1.2 ]
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3.3.0
24+
with:
25+
ref: ${{ matrix.branch }}
26+
fetch-depth: 0
27+
- name: Set env
28+
run: echo "RELEASE_TAG=v9.9.9-fake" >> $GITHUB_ENV
29+
- name: Set fake tag for release
30+
run: |
31+
git tag ${{ env.RELEASE_TAG }}
32+
- name: Calculate go version
33+
run: echo "go_version=$(make go-version)" >> $GITHUB_ENV
34+
- name: Set up Go
35+
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # tag=v3.5.0
36+
with:
37+
go-version: ${{ env.go_version }}
38+
- name: Test release
39+
run: |
40+
make release

0 commit comments

Comments
 (0)