act/.github/workflows/promote.yml

33 lines
742 B
YAML
Raw Normal View History

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 }}
- uses: fregante/setup-git-user@v2
- uses: actions/setup-go@v4
2022-06-20 18:31:51 -05:00
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