ci: run argocd diff on app-of-apps on pull requests #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Argo CD | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
diff: | |
name: Differences | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: clowdhaus/argo-cd-action@v2.0.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
command: version | |
options: --client | |
- name: Gather differences in the app of apps | |
env: | |
ARGOCD_AUTH_TOKEN: ${{ secrets.ARGOCD_AUTH_TOKEN }} | |
run: | | |
argocd diff app-of-apps --revision ${{ github.sha }} |