Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.1.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3.1.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
32 lines
750 B
YAML
32 lines
750 B
YAML
---
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 * * *"
|
|
workflow_dispatch: {}
|
|
|
|
env:
|
|
GO_VERSION: "^1.16"
|
|
|
|
jobs:
|
|
fields:
|
|
runs-on: "ubuntu-latest"
|
|
steps:
|
|
- uses: "actions/setup-go@v3"
|
|
with:
|
|
go-version: "${{ env.GO_VERSION }}"
|
|
|
|
- uses: "actions/checkout@v3.1.0"
|
|
- uses: "actions/cache@v3"
|
|
with:
|
|
path: "~/go/pkg/mod"
|
|
key: "${{ runner.os }}-gomod-${{ hashFiles('**/go.sum') }}"
|
|
restore-keys: |
|
|
${{ runner.os }}-gomod-
|
|
|
|
# TODO: Automatically merge the PR if tests pass.
|
|
- run: "go generate unifi/fields.go"
|
|
- uses: "peter-evans/create-pull-request@v4"
|
|
with:
|
|
delete-branch: true
|
|
title: "Update to latest controller version"
|