Rename detect change step
This commit is contained in:
parent
3bc4b8a6b8
commit
5689263b3b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user