Skip to content

ci: integrate sync-docs workflow #444

ci: integrate sync-docs workflow

ci: integrate sync-docs workflow #444

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@feat/release-actions-rework # 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: release
uses: hoverkraft-tech/public-docs/.github/workflows/sync-docs-dispatcher.yml@main # 0.1.0
with:
artifact-id: ${{ needs.release.outputs.artifact-id }}
github-app-id: ${{ vars.CI_BOT_APP_ID }}
secrets:
github-app-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}