From f907e43ecdbb65789058a2136d390816a9680913 Mon Sep 17 00:00:00 2001 From: Kevin Deldycke Date: Wed, 30 Mar 2022 01:13:51 +0400 Subject: [PATCH] Use external workflow for doc maintainance. --- .github/workflows/autofix.yaml | 48 ---------------------------------- .github/workflows/docs.yaml | 13 +++++++++ 2 files changed, 13 insertions(+), 48 deletions(-) create mode 100644 .github/workflows/docs.yaml diff --git a/.github/workflows/autofix.yaml b/.github/workflows/autofix.yaml index b6684b6..0940ea6 100644 --- a/.github/workflows/autofix.yaml +++ b/.github/workflows/autofix.yaml @@ -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 " - 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 " - 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 diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml new file mode 100644 index 0000000..e3b783c --- /dev/null +++ b/.github/workflows/docs.yaml @@ -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 \ No newline at end of file