fix: swift package complains of having a dependency on a branch #699
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Linter | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
lint: | |
name: Lint changes | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
# - name: Mega-Linter | |
# id: ml | |
# uses: megalinter/megalinter@v6 | |
# env: | |
# VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
# DISABLE: COPYPASTE,SPELL | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# DISABLE_LINTERS: SWIFT_SWIFTLINT,YAML_V8R,REPOSITORY_DEVSKIM,REPOSITORY_TRIVY,REPOSITORY_GITLEAKS | |
- name: SwiftLint | |
uses: norio-nomura/action-swiftlint@3.2.1 | |
with: | |
args: --strict | |
env: | |
DIFF_BASE: ${{ github.base_ref }} | |
# - name: Archive production artifacts | |
# if: success() || failure() | |
# uses: actions/upload-artifact@v2 | |
# with: | |
# name: Mega-Linter reports | |
# path: | | |
# report | |
# mega-linter.log |