File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1010 container-version :
1111 required : true
1212 type : string
13+ base-sha :
14+ required : true
15+ type : string
1316env :
1417 RUSTFLAGS : " -Dwarnings"
1518 CFLAGS : " -Werror"
3841 lint-py :
3942 runs-on : ubuntu-22.04
4043 container : ${{ inputs.container-repo }}:${{ inputs.container-version }}
44+ env :
45+ TARGET_BRANCH : ${{ inputs.base-sha }}
4146 steps :
4247 - name : Clone the repo
4348 uses : actions/checkout@v4
5762 runs-on : ubuntu-22.04
5863 container :
5964 image : ${{ inputs.container-repo }}:${{ inputs.container-version }}
65+ env :
66+ TARGET_BRANCH : ${{ inputs.base-sha }}
6067 steps :
6168 - name : Clone the repo
6269 uses : actions/checkout@v4
Original file line number Diff line number Diff line change 2424 with :
2525 container-version : ${{ needs.dev-container.outputs.container-version }}
2626 container-repo : ${{ needs.dev-container.outputs.container-repo }}
27+ base-sha : ${{ github.event.before }}
2728 secrets : inherit
Original file line number Diff line number Diff line change 2121 with :
2222 container-repo : ${{ needs.dev-container.outputs.container-repo }}
2323 container-version : ${{ needs.dev-container.outputs.container-version }}
24+ base-sha : ${{ github.event.pull_request.base.sha }}
2425 secrets : inherit
2526
2627 # Build the firmware on every commit to simplify bisecting the firmware
You can’t perform that action at this time.
0 commit comments