Add support for Microsoft.Portal dashboards #4319
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate Documentation Links | |
| on: | |
| workflow_dispatch: | |
| # no content, allows manual triggering | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - "docs/**" | |
| merge_group: | |
| branches: | |
| - main | |
| permissions: {} | |
| jobs: | |
| validate-site-links: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # pinned to 7.0.1 | |
| with: | |
| fetch-depth: 0 # required to access tags | |
| submodules: "true" | |
| - name: Log in to GitHub Docker Registry | |
| uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # pinned to v4.6.0 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build devcontainer image | |
| run: | | |
| docker build --cache-from ghcr.io/azure/azure-service-operator/aso-devcontainer:latest --tag devcontainer:latest -f .devcontainer/Dockerfile . | |
| env: | |
| DOCKER_BUILDKIT: 1 | |
| - name: Run devcontainer image | |
| id: devcontainer | |
| run: | | |
| container_id=$(docker create -w /workspace -v $GITHUB_WORKSPACE:/workspace -v /var/run/docker.sock:/var/run/docker.sock devcontainer:latest) | |
| docker start "$container_id" | |
| echo "container_id=$container_id" >> $GITHUB_ENV | |
| - name: Build & validate docs site | |
| run: | | |
| container_id=${{ env.container_id }} | |
| docker exec "$container_id" task build-docs-site |