Rename detect change step
All checks were successful
Build and push / detect-changed-files (push) Successful in 7s
Build and push / Lint-Python (push) Has been skipped
Build and push / Build-and-Push-Docker (push) Has been skipped
Build and push / sync-argocd-app (push) Has been skipped

This commit is contained in:
Luke Robles 2024-05-02 19:41:06 -07:00
parent 3bc4b8a6b8
commit 5689263b3b

View File

@ -3,7 +3,7 @@ run-name: ${{ gitea.actor }} Triggered a new run 🚀
on: [push]
jobs:
changes:
detect-changed-files:
runs-on: ubuntu-latest
outputs:
python_files: ${{ steps.filter.outputs.python_files }}
@ -21,8 +21,8 @@ jobs:
- 'helm/**'
Lint-Python:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.python_files == 'true' }}
needs: detect-changed-files
if: ${{ needs.detect-changed-files.outputs.python_files == 'true' }}
steps:
- name: Check out repository code
uses: actions/checkout@v4
@ -43,8 +43,8 @@ jobs:
if: steps.filter.outputs.python_files == 'true'
Build-and-Push-Docker:
needs: changes
if: ${{ needs.changes.outputs.python_files == 'true' }}
needs: detect-changed-files
if: ${{ needs.detect-changed-files.outputs.python_files == 'true' }}
steps:
- name: Login to Docker Hub
if: github.event_name != 'pull_request'
@ -67,8 +67,8 @@ jobs:
ldooks/dragon-bot:${{ gitea.run_id }}
sync-argocd-app:
needs: [changes, Build-and-Push-Docker]
if: ${{ needs.changes.outputs.python_files == 'true' }}
needs: [detect-changed-files, Build-and-Push-Docker]
if: ${{ needs.detect-changed-files.outputs.python_files == 'true' }}
steps:
- name: Sync app in ArgoCD
uses: clowdhaus/argo-cd-action/@main