Compare commits
3 Commits
186d38b2ed
...
9907252856
| Author | SHA1 | Date | |
|---|---|---|---|
|
9907252856
|
|||
| 33cda55291 | |||
| 44abc97c90 |
@@ -69,8 +69,8 @@ jobs:
|
|||||||
|
|
||||||
RENDER_DIR=()
|
RENDER_DIR=()
|
||||||
|
|
||||||
echo ">> Checking for changes ..."
|
echo ">> Checking for changes from HEAD^..HEAD ..."
|
||||||
GIT_DIFF=$(git diff --name-only ${{ gitea.event.before }}..HEAD | xargs -I {} dirname {} | sort -u | grep "clusters/cl01tl/helm/")
|
GIT_DIFF=$(git diff --name-only HEAD^..HEAD | xargs -I {} dirname {} | sort -u | grep "clusters/cl01tl/helm/")
|
||||||
|
|
||||||
if [ -n "${GIT_DIFF}" ]; then
|
if [ -n "${GIT_DIFF}" ]; then
|
||||||
echo ">> Changes detected:"
|
echo ">> Changes detected:"
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ jobs:
|
|||||||
PARENT_COUNT=$(git rev-list --parents -n 1 ${{ gitea.event.after }} | wc -w)
|
PARENT_COUNT=$(git rev-list --parents -n 1 ${{ gitea.event.after }} | wc -w)
|
||||||
|
|
||||||
echo ">> Commit SHA: ${{ gitea.event.after }}"
|
echo ">> Commit SHA: ${{ gitea.event.after }}"
|
||||||
echo ">> Word Count (Parent Count + 1): $PARENT_COUNT"
|
echo ">> Parent Count: $PARENT_COUNT"
|
||||||
|
|
||||||
if [ $PARENT_COUNT > 1]; do
|
if [ $PARENT_COUNT > 1]; do
|
||||||
echo "">> Commit detected to be a direct commit to main"
|
echo "">> Commit detected to be a direct commit to main"
|
||||||
@@ -47,11 +47,6 @@ jobs:
|
|||||||
|
|
||||||
echo "parent-count=$PARENT_COUNT" >> "$GITHUB_OUTPUT"
|
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
|
- name: Set up Helm
|
||||||
uses: azure/setup-helm@v4
|
uses: azure/setup-helm@v4
|
||||||
if: steps.check-push-type.outputs.parent-count == '2'
|
if: steps.check-push-type.outputs.parent-count == '2'
|
||||||
|
|||||||
Reference in New Issue
Block a user