Skip to content

ci: use shared actions/workflows #22

ci: use shared actions/workflows

ci: use shared actions/workflows #22

Workflow file for this run

name: Build
on:
pull_request: {}
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: setup Crossplane cli
uses: grafana/shared-workflows/actions/setup-crossplane@duologic/setup-crossplane
- name: setup go-jsonnet
uses: zendesk/setup-jsonnet@f683a0d16f479db69751bd8d3a49a09e22b45b39 # v12
with:
version: v0.20.0
- name: setup jrsonnet
uses: grafana/shared-workflows/actions/setup-jrsonnet@duologic/setup-jrsonnet
- name: Build xpkg
run: "make -B build"
shell: bash
- name: Check if file changed
id: changed
uses: tj-actions/verify-changed-files@6ed7632824d235029086612d4330d659005af687 # v20.0.1
with:
files: |
!bin
- name: No files changed
if: "${{ steps.changed.outputs.files_changed == 'true' }}"
run: "echo 'Please run `make build`' && exit 1"
env:
CHANGED_FILES: "${{ steps.changed.outputs.changed_files }}"