name: Internal - Main - Continuous Integration on: push: branches: [main] tags: ["*"] workflow_dispatch: schedule: - cron: "25 8 * * 1" concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true permissions: {} jobs: ci: uses: ./.github/workflows/__shared-ci.yml permissions: actions: read contents: read id-token: write packages: read pull-requests: write security-events: write statuses: write secrets: inherit prepare-docs: needs: ci if: github.event_name != 'schedule' runs-on: ubuntu-latest permissions: contents: read outputs: artifact-id: ${{ steps.upload-artifact.outputs.artifact-id }} steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 with: persist-credentials: false - name: 📖 Generate documentation id: generate-documentation uses: hoverkraft-tech/ci-dokumentor@c46a1a108957237cf485103a80b060c35c7dba33 # 0.2.2 with: source: action.yml extra-badges: | [ { "label":"codecov", "url":"https://codecov.io/gh/hoverkraft-tech/compose-action/graph/badge.svg?token=90JXB7EIMA", "linkUrl":"https://codecov.io/gh/hoverkraft-tech/compose-action" } ] - uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 id: generate-token with: app-id: ${{ vars.CI_BOT_APP_ID }} private-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }} - uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@b17226e57c8ef31f860719766656ebb6df017218 # 0.31.6 with: github-token: ${{ steps.generate-token.outputs.token }} branch: docs/actions-workflows-documentation-update title: "docs: update actions and workflows documentation" body: Update actions and workflows documentation commit-message: | docs: update actions and workflows documentation [skip ci] - id: upload-artifact uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: name: documentation-files-${{ github.run_id }} path: | ${{ steps.generate-documentation.outputs.destination }} .github/logo.svg sync-docs: needs: prepare-docs if: needs.prepare-docs.outputs.artifact-id uses: hoverkraft-tech/public-docs/.github/workflows/sync-docs-dispatcher.yml@c40c17f7d6a8090950b3ef4bfc70502707a6bb9f # 0.3.0 permissions: contents: read with: artifact-id: ${{ needs.prepare-docs.outputs.artifact-id }} github-app-id: ${{ vars.CI_BOT_APP_ID }} secrets: github-app-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}