File tree Expand file tree Collapse file tree 5 files changed +47
-0
lines changed Expand file tree Collapse file tree 5 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 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 }}"
Original file line number Diff line number Diff line change 1+ FROM debian:bookworm-slim
2+
3+ COPY entrypoint.sh .
4+
5+ ENTRYPOINT [ "./entrypoint.sh" ]
Original file line number Diff line number Diff line change 1+ # GitHub Action for Kustomize Build+Diff
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments