Skip to content

Commit da6965e

Browse files
committed
first commit
0 parents  commit da6965e

File tree

5 files changed

+47
-0
lines changed

5 files changed

+47
-0
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "e2e"
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
e2e:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- id: test-action
13+
uses: ./
14+
- run: echo "${{ steps.test-action.outputs.diff }}"

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM debian:bookworm-slim
2+
3+
COPY entrypoint.sh .
4+
5+
ENTRYPOINT [ "./entrypoint.sh" ]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# GitHub Action for Kustomize Build+Diff

action.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "kustomize-diff"
2+
description: "Kustomize build and diff action"
3+
inputs:
4+
base_ref:
5+
description: "Ref for PR base"
6+
required: true
7+
default: ${{ github.base_ref }}
8+
head_ref:
9+
description: "Ref for PR head"
10+
required: true
11+
default: ${{ github.head_ref }}
12+
outputs:
13+
diff:
14+
description: "Git diff"
15+
runs:
16+
using: "docker"
17+
image: "Dockerfile"

entrypoint.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
set -x
4+
5+
echo "Hello World"
6+
echo "head $INPUT_HEAD_REF base $INPUT_BASE_REF"
7+
8+
echo "diff=foo" >>"$GITHUB_OUTPUT"
9+
10+
exit 0

0 commit comments

Comments
 (0)