From 641856c1dc2b2c06cd022ce288c5b51fba1f7417 Mon Sep 17 00:00:00 2001 From: Roberto Dip Date: Thu, 5 Oct 2023 09:52:10 -0300 Subject: [PATCH] trigger orbit build on version bump (#14315) The [goreleaser-orbit.yaml](https://github.com/fleetdm/fleet/actions/workflows/goreleaser-orbit.yaml) workflow tends to timeout up to 9-10 times before successfully building a macOS binary. We have been using this workflow as a back-up, but it requires doing the version bump and manually triggering the workflow, which can be error prone. This change follows the `workflows/generate-desktop-targets.yml` to trigger the workflow when the workflow file itself is modified. --- .github/workflows/build-orbit.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-orbit.yaml b/.github/workflows/build-orbit.yaml index 41ec1816c1..229b6612b7 100644 --- a/.github/workflows/build-orbit.yaml +++ b/.github/workflows/build-orbit.yaml @@ -2,9 +2,15 @@ name: Build, Sign and Notarize Orbit for macOS on: workflow_dispatch: # allow manual action + push: + paths: + # The workflow can be triggered by modifying ORBIT_VERSION env. + - '.github/workflows/build-orbit.yaml' pull_request: paths: - 'orbit/**.go' + # The workflow can be triggered by modifying ORBIT_VERSION env. + - '.github/workflows/build-orbit.yaml' env: ORBIT_VERSION: 1.17.0