Skip to content

Apply SwiftLint on BPKCommon #968

Apply SwiftLint on BPKCommon

Apply SwiftLint on BPKCommon #968

Workflow file for this run

name: pr
on:
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
shell: bash -l {0}
jobs:
Build:
name: Build
permissions:
statuses: write
pull-requests: write
uses: ./.github/workflows/_build.yml
BuildDocs:
name: Build Docs
permissions:
statuses: write
pull-requests: write
uses: ./.github/workflows/_build-docs.yml
Dependabot:
runs-on: ubuntu-latest
permissions:
pull-requests: write
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Fetch Dependabot metadata
id: dependabot-metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Add bpk label
if: contains(steps.dependabot-metadata.outputs.dependency-names, 'bpk-')
run: gh pr edit "$PR_URL" --add-label "bpk" --remove-label "javascript"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_URL: ${{github.event.pull_request.html_url}}