Compare commits
1 Commits
75544d5fa4
...
de171da65d
| Author | SHA1 | Date | |
|---|---|---|---|
|
de171da65d
|
@@ -69,8 +69,8 @@ jobs:
|
||||
|
||||
RENDER_DIR=()
|
||||
|
||||
echo ">> Checking for changes from HEAD^..HEAD ..."
|
||||
GIT_DIFF=$(git diff --name-only HEAD^..HEAD | xargs -I {} dirname {} | sort -u | grep "clusters/cl01tl/helm/")
|
||||
echo ">> Checking for changes ..."
|
||||
GIT_DIFF=$(git diff --name-only ${{ gitea.event.before }}..HEAD | xargs -I {} dirname {} | sort -u | grep "clusters/cl01tl/helm/")
|
||||
|
||||
if [ -n "${GIT_DIFF}" ]; then
|
||||
echo ">> Changes detected:"
|
||||
|
||||
@@ -39,7 +39,7 @@ jobs:
|
||||
PARENT_COUNT=$(git rev-list --parents -n 1 ${{ gitea.event.after }} | wc -w)
|
||||
|
||||
echo ">> Commit SHA: ${{ gitea.event.after }}"
|
||||
echo ">> Parent Count: $PARENT_COUNT"
|
||||
echo ">> Word Count (Parent Count + 1): $PARENT_COUNT"
|
||||
|
||||
if [ $PARENT_COUNT > 1]; do
|
||||
echo "">> Commit detected to be a direct commit to main"
|
||||
@@ -47,6 +47,11 @@ jobs:
|
||||
|
||||
echo "parent-count=$PARENT_COUNT" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Run CI for Direct Pushes Only
|
||||
if: steps.check-push-type.outputs.parent-count == '2'
|
||||
run: |
|
||||
echo "This is a direct push (non-merge). Running CI/Tests in Gitea."
|
||||
|
||||
- name: Set up Helm
|
||||
uses: azure/setup-helm@v4
|
||||
if: steps.check-push-type.outputs.parent-count == '2'
|
||||
|
||||
@@ -9,4 +9,4 @@ dependencies:
|
||||
repository: oci://harbor.alexlebens.net/helm-charts
|
||||
version: 6.16.0
|
||||
digest: sha256:d1e5e0a31c90bdff093db673f95c0e5f1cb5dfa0b910c21e5ec430a3cc4dd6aa
|
||||
generated: "2025-12-03T22:50:55.209413276Z"
|
||||
generated: "2025-12-03T22:43:33.154562838Z"
|
||||
|
||||
Reference in New Issue
Block a user