run on pushes not authrored by renovate
Some checks failed
renovate / renovate (push) Has been cancelled
Some checks failed
renovate / renovate (push) Has been cancelled
This commit is contained in:
@@ -18,6 +18,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
render-manifests-push:
|
render-manifests-push:
|
||||||
runs-on: ubuntu-js
|
runs-on: ubuntu-js
|
||||||
|
if: ${{ gitea.event.pusher.name != 'renovate-bot' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Main
|
- name: Checkout Main
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
@@ -31,33 +32,13 @@ jobs:
|
|||||||
ref: manifests
|
ref: manifests
|
||||||
path: infrastructure-manifests
|
path: infrastructure-manifests
|
||||||
|
|
||||||
- name: Check if Commit is from Push
|
|
||||||
id: check-push-type
|
|
||||||
run: |
|
|
||||||
cd ${MAIN_DIR}
|
|
||||||
|
|
||||||
echo ">> Checking if Commit is from Push ..."
|
|
||||||
git checkout ${{ gitea.event.after }}
|
|
||||||
PARENT_COUNT=$(git rev-list --parents -n 1 ${{ gitea.event.after }} | wc -w)
|
|
||||||
|
|
||||||
echo ">> Commit SHA: ${{ gitea.event.after }}"
|
|
||||||
echo ">> Parent Count: $PARENT_COUNT"
|
|
||||||
|
|
||||||
if [ $PARENT_COUNT > 1]; then
|
|
||||||
echo ">> Commit detected to be direct to main"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "parent-count=$PARENT_COUNT" >> "$GITHUB_OUTPUT"
|
|
||||||
|
|
||||||
- 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'
|
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITEA_TOKEN }}
|
token: ${{ secrets.GITEA_TOKEN }}
|
||||||
version: v3.17.2 # Pending https://github.com/helm/helm/pull/30743
|
version: v3.17.2 # Pending https://github.com/helm/helm/pull/30743
|
||||||
|
|
||||||
- name: Prepare Manifest Branch
|
- name: Prepare Manifest Branch
|
||||||
if: steps.check-push-type.outputs.parent-count == '2'
|
|
||||||
run: |
|
run: |
|
||||||
cd ${MANIFEST_DIR}
|
cd ${MANIFEST_DIR}
|
||||||
|
|
||||||
@@ -81,7 +62,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Check which Directories have Changes
|
- name: Check which Directories have Changes
|
||||||
id: check-dir-changes
|
id: check-dir-changes
|
||||||
if: steps.check-push-type.outputs.parent-count == '2'
|
|
||||||
run: |
|
run: |
|
||||||
cd ${MAIN_DIR}
|
cd ${MAIN_DIR}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user