-
Notifications
You must be signed in to change notification settings - Fork 49
43 lines (36 loc) · 1.02 KB
/
nightly-builds.yml
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
name: Nightly Builds
on:
schedule:
- cron: "0 0 * * *"
env:
GO_VERSION: '1.20.11'
jobs:
build:
name: Build latest Flow Go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Update Flow Go
run: go get github.com/onflow/flow-go@master
- name: Tidy up
run: go mod tidy
- name: Build
run: go build -v ./...
continue-on-error: true
- name: create an issue
if: ${{ failure() }}
uses: dacbd/create-issue-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: Nightly Flow Go build failed
body: |
The build with the latest flow-go failed. Please investigate and fix the issue.
Workflow Run: ${{ github.run_number }}
Commit: ${{ github.sha }}
Ref: ${{ github.ref }}
assignees: j1010001