Skip to content

.github/workflows/utility-binaries-build.yml #598

.github/workflows/utility-binaries-build.yml

.github/workflows/utility-binaries-build.yml #598

on:
push:
branches:
- 'build-utility-*'
schedule:
- cron: '15 1 * * *'
workflow_dispatch:
jobs:
build-utilities:
if: github.repository == 'hashicorp/vagrant-vmware-desktop'
name: Development Utility Builds
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Code Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: go.mod
- name: Get info
id: info
run: ./.ci/utility-bins-information
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build and publish utilities
if: ${{ steps.info.outputs.utility-bins-release-exists != 'true' }}
run: ./.ci/utility-binaries-prerelease "${UTILITY_VERSION}"
env:
UTILITY_VERSION: ${{ steps.info.outputs.utility-bins-version }}
EVENT_NAME: ${{ github.event_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}