Skip to content

Commit 8d39725

Browse files
committed
fix syntax, not bash
1 parent 5219ba6 commit 8d39725

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/mg5_codegen.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
fi
3636
3737
- name: Commit to target repository
38-
if: [ "${{ steps.clang-format-check.outputs.format_exit }}" -eq "0" ]
38+
if: "${{ steps.clang-format-check.outputs.format_exit }}" == "0"
3939
env:
4040
TARGET_REPO: roiser/madgraph4gpu-generated-processes
4141
GH_TOKEN: ${{ secrets.MG4GPU_GEN_PAT }}
@@ -65,7 +65,7 @@ jobs:
6565
echo "✅ Pushed to ${TARGET_REPO} on branch ${BRANCH_NAME}"
6666
6767
- name: Read patch file
68-
if: [ "${{ steps.clang-format-check.outputs.format_exit }}" -ne "0" ]
68+
if: "${{ steps.clang-format-check.outputs.format_exit }}" != "0"
6969
run: |
7070
{
7171
echo "patch_file_content<<EOF"
@@ -74,7 +74,7 @@ jobs:
7474
} >> $GITHUB_OUTPUT
7575
7676
- name: Comment on PR with format issues
77-
if: [ "${{ steps.clang-format-check.outputs.format_exit }}" -ne "0" ]
77+
if: "${{ steps.clang-format-check.outputs.format_exit }}" != "0"
7878
uses: actions/github-script@v7
7979
with:
8080
script: |
@@ -97,5 +97,5 @@ jobs:
9797
});
9898
9999
- name: Fail if format check failed
100-
if: [ "${{ steps.clang-format-check.outputs.format_exit }}" -ne "0" ]
100+
if: "${{ steps.clang-format-check.outputs.format_exit }}" != "0"
101101
run: exit 1

0 commit comments

Comments
 (0)