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[@]}"