Use external workflow for doc maintainance.

This commit is contained in:
Kevin Deldycke
2022-03-30 01:13:51 +04:00
parent 7e5484d0de
commit f907e43ecd
2 changed files with 13 additions and 48 deletions

View File

@@ -87,51 +87,3 @@ jobs:
labels: "CI/CD"
assignees: kdeldycke
branch: format-json
typos:
name: Fix typos and create a PR
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: sobolevn/misspell-fixer-action@0.1.0
- uses: peter-evans/create-pull-request@v3.12.0
with:
author: "Kevin Deldycke <kevin@deldycke.com>"
commit-message: "[autofix] Typo"
title: "[autofix] Typo"
body: >
[Auto-generated on run
#${{ github.run_id }}](https://github.com/${{ github.repository
}}/actions/runs/${{ github.run_id }}) as defined by [workflow
action](https://github.com/${{ github.repository
}}/blob/${{ github.base_ref }}/.github/workflows/autofix.yaml).
labels: "CI/CD"
assignees: kdeldycke
branch: autofix-typo
images:
name: Optimize images
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: calibreapp/image-actions@1.1.0
id: image_actions
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
compressOnly: true
- uses: peter-evans/create-pull-request@v3.12.0
with:
author: "Kevin Deldycke <kevin@deldycke.com>"
commit-message: "[autofix] Optimize images"
title: "[autofix] Optimize images"
body: >
[Auto-generated on run
#${{ github.run_id }}](https://github.com/${{ github.repository
}}/actions/runs/${{ github.run_id }}) as defined by [workflow
action](https://github.com/${{ github.repository
}}/blob/${{ github.base_ref }}/.github/workflows/autofix.yaml).
%0A
${{ steps.image_actions.outputs.markdown }}
labels: "CI/CD"
assignees: kdeldycke
branch: optimize-images

13
.github/workflows/docs.yaml vendored Normal file
View File

@@ -0,0 +1,13 @@
---
name: Docs
"on":
push:
# Only targets main branch to avoid amplification effects of auto-fixing
# the exact same stuff in multiple non-rebased branches.
branches:
- main
jobs:
docs:
uses: kdeldycke/workflows/.github/workflows/docs.yaml@v1.0.0