mirror of
https://github.com/xtool-org/xtool.git
synced 2026-02-04 11:53:30 +01:00
Strip PWD
This commit is contained in:
6
.github/workflows/swiftlint.yml
vendored
6
.github/workflows/swiftlint.yml
vendored
@@ -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/'
|
||||
|
||||
Reference in New Issue
Block a user