2022-06-20 18:38:48 -05:00
|
|
|
name: promote
|
2022-06-20 18:31:51 -05:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 2 1 * *'
|
2022-06-20 18:33:24 -05:00
|
|
|
workflow_dispatch: {}
|
2022-06-20 18:31:51 -05:00
|
|
|
|
|
|
|
env:
|
|
|
|
GO_VERSION: 1.18
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
2022-06-20 18:38:48 -05:00
|
|
|
name: promote
|
2022-06-20 18:31:51 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
ref: master
|
2022-06-20 18:49:57 -05:00
|
|
|
token: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
|
2022-06-20 18:38:48 -05:00
|
|
|
- uses: fregante/setup-git-user@v1
|
2022-06-20 18:31:51 -05:00
|
|
|
- uses: actions/setup-go@v3
|
|
|
|
with:
|
|
|
|
go-version: ${{ env.GO_VERSION }}
|
|
|
|
check-latest: true
|
|
|
|
- uses: actions/cache@v3
|
|
|
|
if: ${{ !env.ACT }}
|
|
|
|
with:
|
|
|
|
path: ~/go/pkg/mod
|
|
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-go-
|
|
|
|
- run: make promote
|