Skip to content

Commit 497d9ab

Browse files
authored
Inline pre-build command into API breakage check step (#304)
1 parent 6af5655 commit 497d9ab

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/soundness.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,14 @@ jobs:
150150
- name: Mark the workspace as safe
151151
# https://github.com/actions/checkout/issues/766
152152
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
153-
- name: Pre-build
154-
if: ${{ inputs.linux_pre_build_command }}
155-
# zizmor: ignore[template-injection]
156-
run: ${{ inputs.linux_pre_build_command }}
157153
- name: Run API breakage check
158154
shell: bash
159155
env:
160156
API_BREAKAGE_CHECK_BASELINE: ${{ inputs.api_breakage_check_baseline }}
161157
API_BREAKAGE_CHECK_ALLOWLIST_PATH: ${{ inputs.api_breakage_check_allowlist_path }}
158+
# zizmor: ignore[template-injection]
162159
run: |
160+
${{ inputs.linux_pre_build_command }}
163161
if [[ -z "${API_BREAKAGE_CHECK_BASELINE}" ]]; then
164162
git fetch ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} ${GITHUB_BASE_REF}:pull-base-ref
165163
BASELINE_REF='pull-base-ref'

0 commit comments

Comments
 (0)