Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! Attempt to fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantelis Giazitsis committed Feb 23, 2024
1 parent 2cb667e commit 5c139cc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/pr_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ jobs:
echo "::set-output name=files::$(git diff --name-only $base_branch ${{ github.sha }} | grep '\.swift$' || true)"
# Runs a single command using the runners shell
- name: SwiftLint
- name: Run SwiftLint on Changed Files
run: |
set -o pipefail |
swiftlint lint --strict --quiet --path "${{ steps.get_changed_files.outputs.files }}" | sed -E 's/^(.*):([0-9]+):([0-9]+): (warning|error|[^:]+): (.*)/::\4 title=Lint error,file=\1,line=\2,col=\3::\5\n\1:\2:\3/'
if [ -n "${{ steps.get_changed_files.outputs.files }}" ]; then
swiftlint --path "${{ steps.get_changed_files.outputs.files }}"
else
echo "No Swift files changed."
fi

0 comments on commit 5c139cc

Please sign in to comment.