TirSystem/github-action: Publish wiki / publish-wiki (push) Skipped
TirSystem/github-action: Sync GitHub mirror metadata / sync-metadata (push) Skipped
Validate workflows / validate (pull_request) Successful in 18s
Findings of QC-WF-001 (criteria 8 and 14) applied to the workflows of this repository and to the two scoped workflows: - timeout-minutes on every job: quality-checks 15, release 15, validate-workflows 10, sync-milestones 15, publish-wiki 10, sync-github-metadata 5. - actions/checkout@v4 becomes actions/checkout@v4.2.2. No change to inputs, secrets or behaviour. The 6-line run blocks of sync-milestones.yml move to a script in the framework in a separate change.
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
name: Sync GitHub mirror metadata
|
|
|
|
# Scoped workflow: it runs in every repository of an organization. The script
|
|
# is a file of TirSystem/github-action (tools/sync_github_metadata.py), fetched
|
|
# with a checkout so that it is readable, lintable and tested as a file
|
|
# (MIL-004 task 6). The repository is public, so no token is needed.
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "17 3 * * *"
|
|
|
|
jobs:
|
|
sync-metadata:
|
|
permissions:
|
|
contents: read
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- name: Fetch the shared script
|
|
uses: actions/checkout@v4.2.2
|
|
with:
|
|
repository: TirSystem/github-action
|
|
ref: v1
|
|
path: shared-scripts
|
|
|
|
- name: Sync description and topics
|
|
env:
|
|
GITEA_API_URL: ${{ gitea.api_url }}
|
|
GITEA_CREDENTIALS: ${{ secrets.TOKEN_FOR_GITEA }}
|
|
SOURCE_REPOSITORY: ${{ gitea.repository }}
|
|
PAT_FOR_GITHUB: ${{ secrets.PAT_FOR_GITHUB }}
|
|
run: python3 shared-scripts/tools/sync_github_metadata.py
|