Merge pull request #2632 from suvajit-sarkar/develop #1485
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: DCI Lint | |
# Triggers the workflow on push or pull request events | |
on: | |
push: | |
branches: [main, develop] | |
# Ignore the releases folders | |
paths-ignore: | |
- '**/releases/**' | |
pull_request: | |
branches: [main, develop] | |
jobs: | |
DCI-Lint: | |
runs-on: ubuntu-20.04 | |
name: DCI-Lint | |
steps: | |
- name: Lint Git Repo | |
id: lint-git-repo | |
uses: petermetz/gh-action-dci-lint@v0.6.1 | |
with: | |
lint-git-repo-request: '{"cloneUrl": "${{ github.server_url }}/${{ github.repository }}.git", "fetchArgs": ["--update-head-ok", "--no-tags", "--prune", "--progress", "--no-recurse-submodules", "--depth=1", "origin" ,"+${{ github.sha }}:${{ github.ref }}"], "checkoutArgs": [ "${{ github.ref }}"], "targetPhrasePatterns": [], "configDefaultsUrl": "https://inclusivenaming.org/json/dci-lint-config-recommended-v1.json" }' | |
- name: Get the output response | |
run: echo "${{ steps.lint-git-repo.outputs.lint-git-repo-response }}" |