Skip to content

ci: integrate sync-docs workflow #439

ci: integrate sync-docs workflow

ci: integrate sync-docs workflow #439

Workflow file for this run

---
name: Internal - Main - Continuous Integration
on: # yamllint disable-line rule:truthy
push:
branches: [main]
tags: ["*"]
workflow_dispatch:
schedule:
- cron: "25 8 * * 1"
permissions:
contents: write
statuses: write
security-events: write
actions: write
pages: write
pull-requests: write
# FIXME: This is a workaround for having workflow ref. See https://github.com/orgs/community/discussions/38659
id-token: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
uses: ./.github/workflows/__shared-ci.yml
release:
needs: ci
if: github.event_name != 'schedule'
uses: hoverkraft-tech/ci-github-publish/.github/workflows/release-actions.yml@42d50a3461a177557ca3f83b1d927d7c0783c894 # 0.11.2
with:
update-all: ${{ (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) || github.event_name == 'workflow_dispatch' }}
github-app-id: ${{ vars.CI_BOT_APP_ID }}
secrets:
github-app-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}
sync-docs:
needs: ci
if: github.event_name != 'schedule'
uses: hoverkraft-tech/public-docs/.github/workflows/sync-docs-dispatcher.yml@18facec04f2945f4d66d510e8a06568497b73c54 # 0.1.0
with:
paths: |
actions/**/README.md
.github/workflows/*.md
README.md
secrets:
github-token: ${{ secrets.PUBLIC_DOCS_TOKEN }}