Skip to content

Commit f337dee

Browse files
authored
Merge pull request #312 from h3poteto/feat/manifests
Add manifests workflow
2 parents e733328 + 38d1290 commit f337dee

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/manifests.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Manifests
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
manifests:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@master
12+
- uses: actions/setup-go@v5
13+
with:
14+
go-version-file: "go.mod"
15+
- name: Generate manifests
16+
id: manifests
17+
run: |
18+
make manifests
19+
diff=$(git status --short | wc -l) && echo "::set-output name=DIFF::$diff"
20+
- name:
21+
if: steps.manifests.outputs.DIFF != 0
22+
run: |
23+
echo "Manifests diff exists"
24+
git status
25+
exit 1

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Get the currently used golang install path
44
# Use ~/.local/bin for local development if it exists in PATH, otherwise use go bin
5-
ifneq (,$(findstring $(HOME)/.local/bin,$(PATH)))
5+
ifneq (,$(and $(findstring $(HOME)/.local/bin,$(PATH)),$(wildcard $(HOME)/.local/bin)))
66
GOBIN=$(HOME)/.local/bin
77
else
88
ifeq (,$(shell go env GOBIN))

0 commit comments

Comments
 (0)