Skip to content

Commit

Permalink
Update swiftlint workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSmart00 committed Aug 3, 2024
1 parent e48a95f commit 3057251
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,3 @@ jobs:
uses: actions/labeler@v5
with:
configuration-path: .github/configs/labeler.yml

call_workflow:
needs: [label]
runs-on: ubuntu-latest
steps:
- id: labels
shell: bash
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.number }}
run: |
json=$(gh pr view "$PR_NUMBER" --json labels | jq -c '.labels|map(.name)')
echo "json=$json" >> "$GITHUB_OUTPUT"
- name: Echo Label
run: echo "${{steps.labels.outputs.json}}"
- if: contains(fromJSON(steps.labels.outputs.json), 'type:iOS 🍎')
uses: ./.github/workflows/swiftlint.yml
6 changes: 4 additions & 2 deletions .github/workflows/swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: SwiftLint
on:
workflow_call:

pull_request:
paths:
- '.swiftlint.yml'
- '**/*.swift'
jobs:
swift-lint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3057251

Please sign in to comment.