fix: accept successful applies without output #13539
Workflow file for this run
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: website | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| - 'release-**' | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| branches: | |
| - 'main' | |
| - 'release-**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| permissions: | |
| # Required: allow read access to the content for analysis. | |
| contents: read | |
| jobs: | |
| changes: | |
| outputs: | |
| should-run-website-check: ${{ steps.changes.outputs.src == 'true' }} | |
| if: github.event.pull_request.draft == false | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 | |
| - uses: dorny/paths-filter@d1c1ffe0248fe513906c8e24db8ea791d46f8590 # v3 | |
| id: changes | |
| with: | |
| filters: | | |
| src: | |
| - 'runatlantis.io/**' | |
| - 'package-lock.json' | |
| - 'package.json' | |
| - '.github/workflows/website.yml' | |
| - '.vale.ini' | |
| - '_typos.toml' | |
| - '.github/styles/**' | |
| # Check that the website builds and there's no missing links. | |
| website-check: | |
| needs: [changes] | |
| if: github.event.pull_request.draft == false && needs.changes.outputs.should-run-website-check == 'true' | |
| name: Website Check | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 | |
| - name: Spell check | |
| uses: crate-ci/typos@7b04f660f4ee4f048d18fd341887cf28dfbedfe2 # v1.46.3 | |
| with: | |
| files: ./runatlantis.io/docs | |
| - name: Vale prose linting | |
| run: | | |
| VALE_VERSION="3.9.4" | |
| VALE_TARBALL="vale_${VALE_VERSION}_Linux_64-bit.tar.gz" | |
| curl -sLO "https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/${VALE_TARBALL}" | |
| echo "551f7ef5cabd53affb7b2c8bdbd4cfb6216270d53c4d6e571a567c5b5df0921d ${VALE_TARBALL}" | sha256sum --check | |
| tar xz -C /tmp vale -f "${VALE_TARBALL}" | |
| rm "${VALE_TARBALL}" | |
| # api-endpoints.md intentionally uses "Github"/"Gitlab" as literal API | |
| # string values matching the Go source code constants; exclude it here. | |
| /tmp/vale --glob='!*api-endpoints.md' runatlantis.io/docs/ | |
| - name: markdown-lint | |
| uses: DavidAnson/markdownlint-cli2-action@ded1f9488f68a970bc66ea5619e13e9b52e601cd # v23 | |
| with: | |
| config: .markdownlint.yaml | |
| globs: 'runatlantis.io/**/*.md' | |
| - name: Link Checker | |
| id: lychee | |
| uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0 | |
| with: | |
| args: >- | |
| --verbose | |
| --no-progress | |
| --max-concurrency 5 | |
| --max-retries 0 | |
| --accept 200,429 | |
| ./runatlantis.io | |
| - name: setup npm | |
| uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6 | |
| with: | |
| cache: 'npm' | |
| - name: run http-server | |
| run: | | |
| # build site | |
| npm ci | |
| npm run website:build | |
| # start http-server for integration testing | |
| npx http-server runatlantis.io/.vitepress/dist & | |
| - name: Run Playwright E2E tests | |
| run: | | |
| npx playwright install --with-deps | |
| npm run e2e | |
| skip-website-check: | |
| needs: [changes] | |
| if: needs.changes.outputs.should-run-website-check == 'false' | |
| name: Website Check | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - run: 'echo "No build required"' |