Skip to content

Commit

Permalink
uncomment the rest
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Oct 2, 2024
1 parent 65738bc commit ce96bef
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/code-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,17 @@ jobs:
CMD_PATH=$([ "$EXCLUDE_PATTERNS" = "" ] && echo "$CONFIG_PATH" || echo "")
CONFIG_OR_RULES=$([ ! -z "$CONFIG" ] && echo "--config=$CONFIG" || echo --rules=$RULES)
# set -x
~/.composer/vendor/bin/php-cs-fixer fix \
$CMD_PATH \
$CONFIG_OR_RULES \
--dry-run --diff
# ~/.composer/vendor/bin/php-cs-fixer fix \
# $CMD_PATH \
# $CONFIG_OR_RULES \
# --dry-run --diff
- name: ⚠️⚠️ Debug Info ⚠️⚠️
if: failure()
run: |
echo "Run this script locally by executing the following command" \
"from the root of your ${{ github.repository }} repo:"
echo ""
echo " composer global require google/cloud-tools"
echo " ~/.composer/vendor/bin/php-tools cs-fixer ${{ github.repository }} --ref ${{ github.ref_name }}"
echo ""
if [ "$?" -ne 0 ]; then
echo "Run this script locally by executing the following command" \
"from the root of your ${{ github.repository }} repo:"
echo ""
echo " composer global require google/cloud-tools"
echo " ~/.composer/vendor/bin/php-tools cs-fixer ${{ github.repository }} --ref ${{ github.ref_name }}"
echo ""
exit 1
fi

0 comments on commit ce96bef

Please sign in to comment.