determine changed files
Some checks failed
ArgoCD Diff / argocd-diff-preview (pull_request) Failing after 43s
Some checks failed
ArgoCD Diff / argocd-diff-preview (pull_request) Failing after 43s
This commit is contained in:
parent
89960102a1
commit
f7b42cb9dd
1 changed files with 5 additions and 2 deletions
|
|
@ -25,6 +25,10 @@ jobs:
|
|||
ref: main
|
||||
path: main
|
||||
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: https://github.com/tj-actions/changed-files@v45
|
||||
|
||||
- name: Install Docker CLI
|
||||
run: |
|
||||
if command -v apt-get &>/dev/null; then
|
||||
|
|
@ -36,8 +40,6 @@ jobs:
|
|||
- name: Generate Diff
|
||||
run: |
|
||||
mkdir -p $(pwd)/output
|
||||
ls $(pwd)/main
|
||||
ls $(pwd)/pull-request
|
||||
docker run \
|
||||
--network=host \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
|
|
@ -46,6 +48,7 @@ jobs:
|
|||
-v $(pwd)/output:/output \
|
||||
-e TARGET_BRANCH=refs/pull/$PR_NUMBER/merge \
|
||||
-e REPO=${{ forge.repository }} \
|
||||
-e FILES_CHANGED="${{ steps.changed-files.outputs.all_changed_files }}" \
|
||||
dagandersen/argocd-diff-preview:v0.2.8
|
||||
|
||||
- name: Add comment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue