ingress-nginx-helm/.github/workflows/docs.yaml
Manuel Alejandro de Brito Fontes 2217dcf7f1 Cleanup github actions
2020-09-02 21:45:00 -04:00

48 lines
938 B
YAML

name: Documentation
on:
push:
branches:
- master
jobs:
changes:
runs-on: ubuntu-latest
if: |
(github.repository == 'kubernetes/ingress-nginx')
outputs:
docs: ${{ steps.filter.outputs.docs }}
charts: ${{ steps.filter.outputs.charts }}
steps:
- name: Checkout
uses: actions/checkout@v1
- uses: dorny/paths-filter@v2.2.0
id: filter
with:
token: ${{ secrets.GITHUB_TOKEN }}
filters: |
docs:
- 'docs/**/*'
docs:
name: Update
runs-on: ubuntu-latest
needs:
- changes
if: |
(github.repository == 'kubernetes/ingress-nginx') &&
(needs.changes.outputs.docs == 'true')
steps:
- name: Checkout master
uses: actions/checkout@v1
- name: Deploy
uses: ./.github/actions/mkdocs
env:
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}