Skip to content

.tekton/pull-request: run conditionally #3168

.tekton/pull-request: run conditionally

.tekton/pull-request: run conditionally #3168

name: Validate PR - buildah-remote
'on':
pull_request:
branches: [main]
jobs:
go:
name: Check Buildah Remote
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Install Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5
with:
go-version-file: './task-generator/go.mod'
- name: Check buildah remote
run: |
./hack/generate-buildah-remote.sh
if [[ ! -z $(git status -s) ]]
then
echo "buildah-remote is not up to date, run ./hack/generate-buildah-remote.sh"
git status -s
git --no-pager diff
exit 1
fi