Skip to content

Commit

Permalink
Add GitHub Actions workflow for docs
Browse files Browse the repository at this point in the history
Signed-off-by: CaptainIRS <[email protected]>
  • Loading branch information
CaptainIRS committed Aug 2, 2022
1 parent 5d903fa commit f5eea6c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dcilintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
docs/v0.2
docs/v0.3.2
docs/v0.4.2
18 changes: 18 additions & 0 deletions .github/workflows/dci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Taken from https://github.com/petermetz/gh-action-dci-lint
name: DCI

on:
workflow_call:

jobs:
DCI-lint:
name: DCI-Lint
runs-on: ubuntu-latest
steps:
- name: Lint Git Repo
id: lint-git-repo
uses: petermetz/[email protected]
with:
lint-git-repo-request: '{"cloneUrl": "${{ github.server_url }}/${{ github.repository }}.git", "fetchArgs": ["--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 }}"
9 changes: 9 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: CI (PR)

on:
pull_request:
branches: [ "gh-pages" ]

jobs:
dci-lint:
uses: ./.github/workflows/dci.yml

0 comments on commit f5eea6c

Please sign in to comment.