File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2828
2929 check-expectations :
3030 runs-on : ubuntu-latest
31+ if : github.event_name == 'pull_request'
3132 steps :
3233 - name : Checkout repo
3334 uses : actions/checkout@v4
@@ -52,14 +53,15 @@ jobs:
5253 echo "JS_ENGINES = [NODE_JS]" >> $EM_CONFIG
5354 echo "final config:"
5455 cat $EM_CONFIG
55- - name : Check test expectations on main
56+ - name : Check test expectations on target branch
5657 run : |
57- git checkout origin/main
58+ git checkout ${{ github.base_ref }}
59+ git rev-parse HEAD
5860 # Hack to honor changes to rebaseline_tests.py in the current PR
5961 git checkout - ./tools/maint/rebaseline_tests.py
6062 ./bootstrap
6163 if ! ./tools/maint/rebaseline_tests.py --check-only; then
62- echo "Test expectations are out-of-date on the main branch."
64+ echo "Test expectations are out-of-date on the target branch."
6365 echo "You can run `./tools/maint/rebaseline_tests.py --new-branch`"
6466 echo "and use it to create a seperate PR."
6567 exit 1
You can’t perform that action at this time.
0 commit comments