Files
emacs-personal/.gitea/workflows/git-sync.yaml
Astounds 8b148df189
Some checks failed
git-sync-with-mirror / test (push) Failing after 1m0s
git-sync-with-mirror / git-sync (push) Has been skipped
ci: add test workflow and fix code quality issues
- Add CI test job with Emacs batch load and byte-compile
- Fix settings-file variable check in init.el
- Fix extra parenthesis in init-neotree.el
- Add missing projectile dependencies in neotree and web-mode
- Fix add-hook usage in init-icons.el
- Add hydra dependency in init-ivy.el
- Standardize header style in init-company.el
2026-02-27 23:26:40 -05:00

72 lines
2.2 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 --eval='(load-file "init.el")'
- name: Byte compile configuration
run: |
emacs --batch -f batch-byte-compile init.el modules/*.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 }}