Compare commits

...

2 commits

Author SHA1 Message Date
8485ce2b1f
huh
Some checks failed
ArgoCD Diff / argocd-diff-preview (pull_request) Failing after 23s
2026-05-29 12:15:45 +02:00
a5ece4f205
revert 2026-05-29 11:52:59 +02:00

View file

@ -25,10 +25,6 @@ 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
@ -39,16 +35,18 @@ jobs:
- name: Generate Diff
run: |
mkdir -p $(pwd)/output
docker run \
CONTAINER_ID=$(docker inspect --format='{{.Id}}' "$HOSTNAME")
docker cp "$CONTAINER_ID:$(pwd)/main" /tmp/argocd-main
docker cp "$CONTAINER_ID:$(pwd)/pull-request" /tmp/argocd-pr
mkdir -p output
docker run --rm \
--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 /tmp/argocd-main:/base-branch \
-v /tmp/argocd-pr:/target-branch \
-v /tmp/argocd-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