fix: parse dirs correctly
Some checks failed
ArgoCD Diff / argocd-diff-preview (pull_request) Failing after 22s

This commit is contained in:
Peter 2026-05-29 10:06:34 +02:00
parent 4da26a2622
commit 674a94e23e
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg

View file

@ -35,12 +35,15 @@ jobs:
- name: Generate Diff
run: |
HOST_WS=$(docker inspect --format='{{range .Mounts}}{{if eq .Destination "/workspace"}}{{.Source}}{{end}}{{end}}' "$HOSTNAME")
REL=${PWD#/workspace/}
mkdir -p output
docker run \
--network=host \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(pwd)/main:/base-branch \
-v $(pwd)/pull-request:/target-branch \
-v $(pwd)/output:/output \
-v "$HOST_WS/$REL/main:/base-branch" \
-v "$HOST_WS/$REL/pull-request:/target-branch" \
-v "$HOST_WS/$REL/output:/output" \
-e TARGET_BRANCH=refs/pull/$PR_NUMBER/merge \
-e REPO=${{ forge.repository }} \
dagandersen/argocd-diff-preview:v0.2.8