-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 1.08 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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: crossplane-contrib/setup-crossplane-action@b40ed901610103a85d38c838a1e00fc54eb8d4c5 # v0.1.0
- 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@main
- 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 }}"