Unverified Commit e87bb28c authored by Benjamin Woodruff's avatar Benjamin Woodruff Committed by GitHub

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.
parent 3e6abe36
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment