Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to reusable workflows #194

Merged
merged 5 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 2 additions & 18 deletions .github/workflows/mkdocs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,5 @@ on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install python action for doc extraction
run: pip install -r docs/requirements.txt
- name: check mkdocs build
if: github.ref != 'refs/heads/main'
run: mkdocs build
- name: Build docs and deploy to gh-pages
if: github.ref == 'refs/heads/main'
run: |
git config user.name 'github-actions'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
mkdocs gh-deploy --force
build-docs:
uses: cpp-linter/.github/.github/workflows/mkdocs.yml@main
9 changes: 2 additions & 7 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,5 @@ on:
workflow_dispatch:

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Draft your next Release notes as Pull Requests are merged into the default branch
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
draft-release:
uses: cpp-linter/.github/.github/workflows/release-drafter.yml@main
13 changes: 3 additions & 10 deletions .github/workflows/run-pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
name: Pre-commit
name: Run pre-commit

on:
push:
pull_request:
types: opened

jobs:
check-source-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- run: python3 -m pip install pre-commit
- run: pre-commit run --all-files
pre-commit:
uses: cpp-linter/.github/.github/workflows/pre-commit.yml@main
Loading