mirror of
https://github.com/Dichgrem/DCGOS.git
synced 2025-12-17 03:31:59 -05:00
chore:git_full
fix:locale remove:mirror_actions
This commit is contained in:
38
.github/workflows/mirror-to-codeberg.yml
vendored
38
.github/workflows/mirror-to-codeberg.yml
vendored
@@ -1,38 +0,0 @@
|
|||||||
name: Mirror to Codeberg
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
tags:
|
|
||||||
- '*'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
mirror:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Push to Codeberg
|
|
||||||
env:
|
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY_CODEBERG }}
|
|
||||||
REPO_URL_CODEBERG: ${{ secrets.REPO_URL_CODEBERG }}
|
|
||||||
run: |
|
|
||||||
set -euxo pipefail
|
|
||||||
|
|
||||||
mkdir -p ~/.ssh
|
|
||||||
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
|
|
||||||
chmod 600 ~/.ssh/id_ed25519
|
|
||||||
cat >> ~/.ssh/config <<EOF
|
|
||||||
Host codeberg.org
|
|
||||||
IdentityFile ~/.ssh/id_ed25519
|
|
||||||
StrictHostKeyChecking no
|
|
||||||
EOF
|
|
||||||
|
|
||||||
git config --global user.name "GitHub Actions"
|
|
||||||
git config --global user.email "github-actions@github.com"
|
|
||||||
|
|
||||||
git remote add codeberg "$REPO_URL_CODEBERG"
|
|
||||||
git push --tags --force --prune codeberg "refs/remotes/origin/*:refs/heads/*"
|
|
||||||
@@ -24,9 +24,7 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
initContent = ''
|
initContent = ''
|
||||||
export LANG=zh_CN.UTF-8
|
export EDITOR=nvim
|
||||||
export EDITOR=nano
|
|
||||||
|
|
||||||
# === History ===
|
# === History ===
|
||||||
HISTFILE=$XDG_STATE_HOME/zsh/history
|
HISTFILE=$XDG_STATE_HOME/zsh/history
|
||||||
HISTSIZE=10000
|
HISTSIZE=10000
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ in {
|
|||||||
fuse.userAllowOther = true;
|
fuse.userAllowOther = true;
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.gitMinimal;
|
package = pkgs.gitFull;
|
||||||
};
|
};
|
||||||
ssh.startAgent = true;
|
ssh.startAgent = true;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user