Files
emacs-personal/.gitea/workflows/git-sync.yaml
Astounds 28473e6497
All checks were successful
git-sync-with-mirror / test (push) Successful in 3m14s
git-sync-with-mirror / git-sync (push) Successful in 14s
ci: remove byte-compile from test workflow
Byte-compile without installed packages produces false positives.
Load test is sufficient for CI validation.
2026-02-27 23:42:34 -05:00

68 lines
2.0 KiB
YAML

name: git-sync-with-mirror
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Emacs
run: |
sudo apt-get update
sudo apt-get install -y emacs-nox
- name: Setup environment
run: |
cp .env.example .env
- name: Load configuration
run: |
emacs --batch -l init.el
git-sync:
runs-on: ubuntu-latest
needs: test
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: git-sync
env:
git_sync_source_repo: git@git.fridu.us:heckyel/emacs-personal.git
git_sync_destination_repo: ssh://git@c.fridu.us/software/emacs-personal.git
if: env.git_sync_source_repo && env.git_sync_destination_repo
uses: astounds/git-sync@v1
with:
source_repo: git@git.fridu.us:heckyel/emacs-personal.git
source_branch: "master"
destination_branch: "master"
destination_repo: ssh://git@c.fridu.us/software/emacs-personal.git
source_ssh_private_key: ${{ secrets.GIT_SYNC_SOURCE_SSH_PRIVATE_KEY }}
destination_ssh_private_key: ${{ secrets.GIT_SYNC_DESTINATION_SSH_PRIVATE_KEY }}
- name: git-sync-sourcehut
env:
git_sync_source_repo: git@git.fridu.us:heckyel/emacs-personal.git
git_sync_destination_repo: git@git.sr.ht:~heckyel/emacs-personal
if: env.git_sync_source_repo && env.git_sync_destination_repo
uses: astounds/git-sync@v1
with:
source_repo: git@git.fridu.us:heckyel/emacs-personal.git
source_branch: "master"
destination_branch: "master"
destination_repo: git@git.sr.ht:~heckyel/emacs-personal
source_ssh_private_key: ${{ secrets.GIT_SYNC_SOURCE_SSH_PRIVATE_KEY }}
destination_ssh_private_key: ${{ secrets.GIT_SYNC_DESTINATION_SSH_PRIVATE_KEY }}