Work on GitHub Action (#733)

## Changes

* Run the build workflow on push to main to properly use the build cache

Same as https://github.com/databricks/databricks-sdk-go/pull/601.

## Tests

n/a
This commit is contained in:
Pieter Noordhuis 2023-09-05 11:58:56 +02:00 committed by GitHub
parent 7a130a3e6e
commit 2f2386ef5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,14 @@ on:
types: [opened, synchronize] types: [opened, synchronize]
merge_group: merge_group:
types: [checks_requested] types: [checks_requested]
push:
# Always run on push to main. The build cache can only be reused
# if it was saved by a run from the repository's default branch.
# The run result will be identical to that from the merge queue
# because the commit is identical, yet we need to perform it to
# seed the build cache.
branches:
- main
jobs: jobs:
tests: tests: