88 inputs :
99 CHIPFLOW_API_ORIGIN :
1010 required : true
11+ type : string
1112 CHIPFLOW_BACKEND_VERSION :
1213 required : true
14+ type : string
15+ ENVIRONMENT :
16+ required : true
17+ type : string
1318
1419
1520jobs :
1621 test-submit :
1722 runs-on : ubuntu-latest
23+ environment : ${{ vars.ENVIRONMENT }}
1824 strategy :
1925 matrix :
2026 dry : [true, false]
2430 env :
2531 DRY : ${{ matrix.dry && '--dry-run' || '' }}
2632 is_dry : ${{ matrix.dry && '(dry run)' || '' }}
27- our_path : " ${{ github.workspace}}/${{ github.repo }} "
33+ our_path : ${{ github.workspace}}
2834 test_repo_path : " ${{ github.workspace }}/${{ matrix.repo.name }}"
2935
3036 name : ${{ matrix.dry && 'Test Submit - Dry run' || 'Test submit' }}
@@ -45,20 +51,23 @@ jobs:
4551 id : check-head-ref
4652 working-directory : ${{ env.test_repo_path }}
4753 if : github.event_name == 'pull_request'
54+ env :
55+ HEAD_REF : ${{ github.head_ref }}
56+ BASE_REF : ${{ github.base_ref }}
4857 run : |
4958 git remote update
50- if git checkout ${{ github.head_ref }} ; then
51- echo "Using branch ${{github.head_ref}} "
59+ if git checkout $HEAD_REF ; then
60+ echo "Using branch $HEAD_REF "
5261 echo "found-branch=1\n" >> $GITHUB_OUTPUT
5362 else
54- echo "${{github.head_ref}} not found, checking base ${{github.base_ref}} "
63+ echo "$HEAD_REF not found, checking base $BASE_REF "
5564 echo "found-branch=0\n" >> $GITHUB_OUTPUT
5665 fi
5766
5867 - name : Check for branch ${{ github.base_ref }}
5968 id : check-base-ref
6069 working-directory : ${{ env.test_repo_path }}x
61- if : github.event_name == 'pull_request' && steps.check-head-ref == 0
70+ if : github.event_name == 'pull_request' && steps.check-head-ref.outputs.found-branch == '0'
6271 run : |
6372 git remote update
6473 if git checkout ${{ github.base_ref }}; then
0 commit comments