Skip to content

Update push-chart workflow concurrency group #28500

Update push-chart workflow concurrency group

Update push-chart workflow concurrency group #28500

Workflow file for this run

name: Documentation Updates
# Any change in triggers needs to be reflected in the concurrency group.
on:
pull_request: {}
push:
branches:
- main
- ft/main/**
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after }}
cancel-in-progress: true
jobs:
check_changes:
name: Deduce required tests from code changes
runs-on: ubuntu-20.04
outputs:
docs-tree: ${{ steps.docs-tree.outputs.src }}
steps:
- name: Checkout code
if: ${{ !github.event.pull_request }}
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
persist-credentials: false
- name: Check code changes
uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
id: docs-tree
with:
# For `push` events, compare against the `ref` base branch
# For `pull_request` events, this is ignored and will compare against the pull request base branch
base: ${{ github.ref }}
filters: |
src:
- .github/workflows/documentation.yaml
- 'Documentation/**'
- 'bugtool/cmd/**'
- 'cilium/cmd/**'
- 'cilium-health/cmd/**'
- 'daemon/cmd/**'
- 'hubble-relay/cmd/**'
- 'install/kubernetes/**'
- 'operator/cmd/**'
# Runs only if code under Documentation or */cmd/ is changed as the docs
# should be unaffected otherwise.
build-html:
needs: check_changes
if: ${{ needs.check_changes.outputs.docs-tree == 'true' }}
name: Validate & Build HTML
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
persist-credentials: false
- name: Run pre-requisites for validation
run: |
make -C Documentation copy-api # necessary for check-build.sh
- uses: docker://cilium/docs-builder:2023-03-01@sha256:36b233afd73482c2bc7ed43f7a1537f09962015c34679b86c4ca1fa618d67b95
with:
entrypoint: ./Documentation/check-build.sh
args: html