Skip to content

Mirror Canonical Repository #15

Mirror Canonical Repository

Mirror Canonical Repository #15

# This file was generated using Kotlin DSL (.github/workflows/mirror-canonical-repository.main.kts).
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/typesafegithub/github-workflows-kt
name: 'Mirror Canonical Repository'
on:
push: {}
repository_dispatch: {}
schedule:
- cron: '44 * * * *'
workflow_dispatch: {}
jobs:
check_yaml_consistency:
name: 'Check YAML consistency'
runs-on: 'ubuntu-latest'
steps:
- id: 'step-0'
name: 'Check out'
uses: 'actions/checkout@v4'
- id: 'step-1'
name: 'Execute script'
run: 'rm ''.github/workflows/mirror-canonical-repository.yaml'' && ''.github/workflows/mirror-canonical-repository.main.kts'''
- id: 'step-2'
name: 'Consistency check'
run: 'git diff --exit-code ''.github/workflows/mirror-canonical-repository.yaml'''
mirror_repository:
name: 'Mirror Repository'
runs-on: 'ubuntu-latest'
needs:
- 'check_yaml_consistency'
steps:
- id: 'step-0'
name: 'Clone Canonical Repository'
run: 'git clone --bare git://git.code.sf.net/p/jedit/jEdit.bak .'
- id: 'step-1'
name: 'Push To Mirror Repository'
run: 'git push --mirror https://x:${{ github.token }}@github.com/${{ github.repository }}'