From d9e11e683d7f0321795a00ccb89db014d0c9950e Mon Sep 17 00:00:00 2001 From: techxuexi21 <86897692+techxuexi21@users.noreply.github.com> Date: Thu, 23 Dec 2021 05:43:48 +0000 Subject: [PATCH] Create push-to-techxuexi.yml --- .github/workflows/push-to-techxuexi.yml | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/push-to-techxuexi.yml diff --git a/.github/workflows/push-to-techxuexi.yml b/.github/workflows/push-to-techxuexi.yml new file mode 100644 index 0000000..8b6a7e9 --- /dev/null +++ b/.github/workflows/push-to-techxuexi.yml @@ -0,0 +1,30 @@ +name: push +on: + push: + branches: + - main + + +jobs: + push: + runs-on: ubuntu-18.04 + if: github.event.repository.owner.id == github.event.sender.id + timeout-minutes: 2 + + steps: + - name: check + uses: actions/checkout@v2 + - name: Init + env: + DEBIAN_FRONTEND: noninteractive + run: | + git config --global user.name 'GitHub' && git config --global user.email 'noreply@github.com' + + - name: Push Code + run: | + mkdir -p ~/.ssh + echo -e "${{ secrets.SSHKEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan github.com > ~/.ssh/known_hosts + git push -f "git@github.com:${{ secrets.SRC_PEPO }}.git" "main:main" +