Create install.sh #625
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync Code | |
on: | |
[ push, delete, create ] | |
# schedule: | |
# - cron: '1 */3 * * *' | |
jobs: | |
syncToGitee: | |
name: sync to Gitee | |
runs-on: ubuntu-latest | |
steps: | |
- uses: wearerequired/git-mirror-action@v1 | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.GITEE_PRIVATE_KEY }} | |
with: | |
source-repo: "git@github.com:Xiechengqi/scripts.git" | |
destination-repo: "git@gitee.com:Xiechengqi/scripts.git" | |
# syncToHashKey: | |
# name: sync to HashKey | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout repository | |
# uses: actions/checkout@v2 | |
# - name: set git config | |
# run: | | |
# git config --global user.name "Xiechengqi" | |
# git config --global user.email "Xiechengqi01@gmail.com" | |
# - name: add ssh primary key | |
# run: | | |
# mkdir ~/.ssh/ | |
# echo "${{ secrets.HASHKEY_SSH_PRIVATE_KEY }}"> ~/.ssh/id_rsa | |
# chmod 600 /home/runner/.ssh/id_rsa | |
# ssh-keyscan -t rsa "github.com" >> ~/.ssh/known_hosts | |
# - name: set logfile | |
# run: | | |
# git log --pretty=format:"%s from Github Actions at `TZ=UTC-8 date +"%Y-%m-%d %H:%M:%S"`" --date=short -n 1 > ~/commit-message.log | |
# - name: sync to hashkey github | |
# run: | | |
# git clone -b master git@github.com:HashKeyHub/fullnode-install.git ~/install | |
# echo '------' | |
# cp -rf ./* ~/install | |
# echo '------' | |
# cd ~/install | |
# echo '------' | |
# git add -A | |
# git commit -F ~/commit-message.log && git push origin master || true |