-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) · 1.3 KB
/
rel.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: rel test
on:
push:
pull_request:
types:
- synchronize
- opened
- reopened
- labeled
- unlabeled
jobs:
rel:
name: rel
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: WillAbides/setup-go-faster@v1
id: setup-go
with:
go-version: '1.20.x'
- uses: actions/cache@v3
with:
path: |
${{ steps.setup-go.outputs.GOCACHE }}
${{ steps.setup-go.outputs.GOMODCACHE }}
key: go-rel-${{ runner.os }}-${{ github.event_name }}-${{ hashFiles('go.*', '.github/workflows/ci.yaml', 'script/*', '.bindown.yaml', '.goreleaser.yaml') }}
restore-keys: go-rel-${{ runner.os }}-${{ github.event_name }}-
- name: RELEASE_TRAIN_BIN
run: |
go build -o bin/release-train .
echo RELEASE_TRAIN_BIN="$(pwd)"/bin/release-train >> $GITHUB_ENV
- uses: './'
name: release-train
id: release-train
with:
release-train-bin: ${{ env.RELEASE_TRAIN_BIN }}
debug: true
labels: |
enhancement=semver:minor
- run: |
echo "local-action outputs:"
echo '${{ toJSON(steps.release-train.outputs) }}'