Compare commits

..

No commits in common. "8485ce2b1f1e7bf0e83f64d8fbdc838baef4c9fe" and "f7b42cb9dd6f663a1da2adcb34cedb4a566eb483" have entirely different histories.

View file

@ -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
@ -35,18 +39,16 @@ jobs:
- name: Generate Diff
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 \
mkdir -p $(pwd)/output
docker run \
--network=host \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /tmp/argocd-main:/base-branch \
-v /tmp/argocd-pr:/target-branch \
-v /tmp/argocd-output:/output \
-v $(pwd)/main:/base-branch \
-v $(pwd)/pull-request:/target-branch \
-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