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]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
changes:
|
detect-changed-files:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
python_files: ${{ steps.filter.outputs.python_files }}
|
python_files: ${{ steps.filter.outputs.python_files }}
|
||||||
@ -21,8 +21,8 @@ jobs:
|
|||||||
- 'helm/**'
|
- 'helm/**'
|
||||||
Lint-Python:
|
Lint-Python:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: changes
|
needs: detect-changed-files
|
||||||
if: ${{ needs.changes.outputs.python_files == 'true' }}
|
if: ${{ needs.detect-changed-files.outputs.python_files == 'true' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -43,8 +43,8 @@ jobs:
|
|||||||
if: steps.filter.outputs.python_files == 'true'
|
if: steps.filter.outputs.python_files == 'true'
|
||||||
|
|
||||||
Build-and-Push-Docker:
|
Build-and-Push-Docker:
|
||||||
needs: changes
|
needs: detect-changed-files
|
||||||
if: ${{ needs.changes.outputs.python_files == 'true' }}
|
if: ${{ needs.detect-changed-files.outputs.python_files == 'true' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
@ -67,8 +67,8 @@ jobs:
|
|||||||
ldooks/dragon-bot:${{ gitea.run_id }}
|
ldooks/dragon-bot:${{ gitea.run_id }}
|
||||||
|
|
||||||
sync-argocd-app:
|
sync-argocd-app:
|
||||||
needs: [changes, Build-and-Push-Docker]
|
needs: [detect-changed-files, Build-and-Push-Docker]
|
||||||
if: ${{ needs.changes.outputs.python_files == 'true' }}
|
if: ${{ needs.detect-changed-files.outputs.python_files == 'true' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Sync app in ArgoCD
|
- name: Sync app in ArgoCD
|
||||||
uses: clowdhaus/argo-cd-action/@main
|
uses: clowdhaus/argo-cd-action/@main
|
||||||
|
Loading…
x
Reference in New Issue
Block a user