-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (35 loc) · 1.2 KB
/
build.yaml
File metadata and controls
43 lines (35 loc) · 1.2 KB
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
40
41
42
43
name: Build
on:
pull_request: {}
jobs:
build:
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: setup Crossplane cli
uses: crossplane-contrib/setup-crossplane-action@cb8aac3f1246b19f101e7f85fd0a38623b4d5ad3 # v0.1.1
- 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@bc9486e0e7cbe24b54d0dcdf8be459eb777567b0
- name: Build xpkg
run: "make -B build"
shell: bash
- name: Check if file changed
id: changed
uses: tj-actions/verify-changed-files@a1c6acee9df209257a246f2cc6ae8cb6581c1edf # v20.0.4
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 }}"