zerocracy run #19981
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
| # SPDX-FileCopyrightText: Copyright (c) 2024-2026 Zerocracy | |
| # SPDX-License-Identifier: MIT | |
| --- | |
| # yamllint disable rule:line-length | |
| name: zerocracy | |
| run-name: zerocracy run #${{ github.run_id }} | |
| 'on': | |
| schedule: | |
| - cron: '*/30 * * * *' | |
| workflow_dispatch: | |
| concurrency: | |
| group: zerocracy | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| jobs: | |
| zerocracy: | |
| if: github.repository_owner == 'zerocracy' | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 55 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| - uses: zerocracy/judges-action@1b9b96e8a56bc676839a5010aba42bca013945d0 # 0.17.20 | |
| with: | |
| token: ${{ secrets.ZEROCRACY_TOKEN }} | |
| github-token: ${{ secrets.PAT }} | |
| repositories: yegor256/judges,yegor256/factbase,zerocracy/*,yegor256/0rsk | |
| factbase: zerocracy.fb | |
| timeout: 15 | |
| lifetime: 20 | |
| cycles: 2 | |
| options: | | |
| sqlite_cache_maxvsize=200K | |
| sqlite_cache_maxsize=200Mb | |
| - uses: zerocracy/pages-action@832b2757fb761acf015b0e0595fef9d245f06ea5 # 0.7.0 | |
| with: | |
| github-token: ${{ secrets.PAT }} | |
| factbase: zerocracy.fb | |
| output: pages | |
| - uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0 | |
| with: | |
| folder: pages | |
| clean: false | |
| - name: Job Summary | |
| if: always() | |
| run: | | |
| cat > "$GITHUB_STEP_SUMMARY" <<'EOF' | |
| ## zerocracy run | |
| | Info | | | |
| |------|---| | |
| | Run | [#${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) attempt **${{ github.run_attempt }}** | | |
| | Timestamp | $(date -u) | | |
| | Status | ${{ job.status }} | | |
| EOF | |
| if [ -f summary.md ]; then | |
| cat summary.md >> "$GITHUB_STEP_SUMMARY" | |
| else | |
| echo "" >> "$GITHUB_STEP_SUMMARY" | |
| echo "_Detailed summary not available (no data from action container)._" >> "$GITHUB_STEP_SUMMARY" | |
| fi | |
| - name: Flag on failure | |
| if: failure() && github.repository_owner == 'zerocracy' | |
| run: | | |
| echo ":x: Workflow run [#${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) **failed**." >> "$GITHUB_STEP_SUMMARY" |