Skip to content

Commit

Permalink
Try this
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Apr 6, 2024
1 parent 5681d9b commit 8852ae6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,15 @@ jobs:
echo "EXITCODE=$exitcode" >> $GITHUB_OUTPUT
exit "$exitcode"
- name: DEBUG
run: echo echo ${{ steps.thresholds.outputs.EXITCODE }}

# Check the codestyle only of the files which were changed in the current branch.
# This step will only be executed if the threshold check exited with a failure status.
# The results of this CS check will be shown inline in the PR via the CS2PR tool.
# @link https://github.com/staabm/annotate-pull-request-from-checkstyle/
- name: Check PHP code style for the changes made in the branch only
if: ${{ failure() && steps.thresholds.outputs.EXITCODE == 128 }}
if: ${{ failure() && steps.thresholds.outputs.EXITCODE == "128" }}
id: phpcs
run: composer check-branch-cs -- ${{ steps.base_branch.outputs.REF }}

Expand Down

0 comments on commit 8852ae6

Please sign in to comment.