Files
CTFd/.github/workflows/mirror-core-theme.yml
gkr 2e06f92c64
Some checks are pending
Linting / Linting (3.11) (push) Waiting to run
Mirror core-theme / mirror (push) Waiting to run
init CTFd source
2025-12-25 09:39:21 +08:00

31 lines
804 B
YAML

name: Mirror core-theme
on:
push:
branches:
- main
workflow_dispatch:
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # need full history for subtree
- name: Setup SSH for deploy key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.CORE_THEME_DEPLOY_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan github.com >> ~/.ssh/known_hosts
- name: Setup git identity
run: |
git config user.name "github-actions[bot]"
git config user.email "username@users.noreply.github.com"
- name: Push subtree
run: |
git subtree push --prefix="CTFd/themes/core" "git@github.com:CTFd/core-theme.git" main