Skip to content

Commit 11b7f49

Browse files
committed
releasable.yaml
1 parent daf0d5a commit 11b7f49

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed
File renamed without changes.

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ jobs:
99
- uses: willabides/setup-go-faster@v1
1010
with:
1111
go-version: '1.20.x'
12-
- run: script/generate --check
12+
- uses: actions/cache@v3
13+
with:
14+
path: |
15+
${{ steps.setup-go.outputs.GOCACHE }}
16+
${{ steps.setup-go.outputs.GOMODCACHE }}
17+
key: ${{ runner.os }}-go-test-${{ hashFiles('**/go.sum') }}
18+
restore-keys: ${{ runner.os }}-go-test
1319
- run: script/test
1420
- run: script/lint
21+
- run: script/generate --check

.github/workflows/releasable.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: releasable
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
types:
7+
- labeled
8+
- unlabeled
9+
- synchronize
10+
- opened
11+
- reopened
12+
workflow_dispatch:
13+
jobs:
14+
releasable:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: WillAbides/setup-go-faster@v1
19+
id: setup-go
20+
with:
21+
go-version: '1.20.x'
22+
- uses: actions/cache@v3
23+
with:
24+
path: |
25+
${{ steps.setup-go.outputs.GOCACHE }}
26+
${{ steps.setup-go.outputs.GOMODCACHE }}
27+
key: ${{ runner.os }}-releasable-${{ hashFiles('**/go.sum') }}
28+
restore-keys: ${{ runner.os }}-releasable-
29+
- run: script/bindown -q semver-next
30+
- name: check releasable
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
run: bin/semver-next "$GITHUB_REPOSITORY" -r "$GITHUB_SHA" --require-labels

0 commit comments

Comments
 (0)