From cc6917c73fdc7f9c4e12cec70d2450e8d4cca6f7 Mon Sep 17 00:00:00 2001 From: Harsh Trivedi Date: Sun, 24 Nov 2024 14:27:00 -0500 Subject: [PATCH] minor --- .github/workflows/new-entry.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/new-entry.yml b/.github/workflows/new-entry.yml index dc4bae5..e3c209f 100644 --- a/.github/workflows/new-entry.yml +++ b/.github/workflows/new-entry.yml @@ -63,13 +63,9 @@ jobs: - name: Verify PR file changes run: | echo "Checking PR for exactly two new files..." - git fetch origin main - git checkout main - git pull origin main - git checkout ${{ steps.get-branch.outputs.branch }} experiment_prefix="${{ env.experiment_prefix }}" expected_files=("${experiment_prefix}_test_normal" "${experiment_prefix}_test_challenge") - new_files=$(git diff --diff-filter=A --name-only origin/main...HEAD) + new_files=$(git diff --name-only main...HEAD) echo "Expected files:" printf "%s\n" "${expected_files[@]}"