Strip PWD

This commit is contained in:
Kabir Oberai
2025-05-28 15:30:45 +05:30
parent ba6f6e72af
commit a3dcc274d0

View File

@@ -10,6 +10,12 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Lint
# based on https://github.com/norio-nomura/action-swiftlint
run: |
function stripPWD() {
! ${WORKING_DIRECTORY+false} && cd - > /dev/null
sed -E "s/$(pwd|sed 's/\//\\\//g')\///"
}
swiftlint | \
stripPWD | \
sed -E 's/^(.*):([0-9]+):([0-9]+): (warning|error|[^:]+): (.*)/::\4 file=\1,line=\2,col=\3::\5/'