chore(CI): Line-wrap afterBuild blocks in build_and_test.yml (#78718)
As part of #76251 I rewrote the `afterBuild` job from:
```yaml
- run: /bin/bash -c "${{ inputs.afterBuild }}"
```
to
```yaml
- run: ${{ inputs.afterBuild }}
# defaults.run.shell sets a stronger options (`-leo pipefail`)
# Set this back to github action's weaker defaults:
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell
#
# We must use a login shell: fnm installation may modify the `.profile`
shell: bash -le {0}
```
So it should handle escaping and line wrapping without problems now. Because we run `bash` with `-e`, failed commands should abort the entire script, so `&&` shouldn't be needed everywhere.