Skip to content

Commit aab242d

Browse files
authored
Read Testing Config Fix (#78)
* config-comment-test.yml: Ended if block * config-comment-test.yml: don't checkout the pr as later steps require the main branch
1 parent cac6a39 commit aab242d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/config-comment-test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,10 @@ jobs:
7272

7373
- name: Get base branch for PR
7474
id: base
75+
# Get the base branch name from the PR
7576
env:
7677
GH_TOKEN: ${{ github.token }}
77-
run: |
78-
gh pr checkout ${{ github.event.issue.number }}
79-
echo "branch=$(gh pr view --json baseRefName --jq '.baseRefName')"
78+
run: echo "branch=$(gh pr view ${{ github.event.issue.number }} --json baseRefName --jq '.baseRefName')" >> $GITHUB_OUTPUT
8079

8180
- name: Read reproducibility tests config
8281
id: repro-config
@@ -127,6 +126,7 @@ jobs:
127126
echo "::error::Usage: ${{ env.USAGE }}"
128127
echo "::error::Command must start with !test to invoke model-config-tests' config-comment-test.yml."
129128
exit 1
129+
fi
130130
131131
- name: Get !test type
132132
id: test

0 commit comments

Comments
 (0)