This commit is contained in:
parent
86b4843f14
commit
37f6b7ddb1
5
.github/github_pushback.sh
vendored
5
.github/github_pushback.sh
vendored
@ -7,6 +7,11 @@ else
|
||||
echo "No push back here" && exit 1
|
||||
fi
|
||||
|
||||
mkdir -p ~/.ssh
|
||||
ssh-keyscan github.com >> ~/.ssh/known_hosts
|
||||
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
|
||||
ssh-add - <<< "$1"
|
||||
|
||||
ssh -vT git@git.pika-os.com
|
||||
|
||||
# Commit changes to git
|
||||
|
7
.github/workflows/github-pushback.yml
vendored
7
.github/workflows/github-pushback.yml
vendored
@ -17,10 +17,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup SSH Keys and known_hosts
|
||||
- name: Run
|
||||
env:
|
||||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
||||
run: mkdir -p ~/.ssh && ssh-keyscan pika-os.com >> ~/.ssh/known_hosts && ssh-agent -a $SSH_AUTH_SOCK > /dev/null && ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}"
|
||||
|
||||
- name: Run
|
||||
run: ./.github/github_pushback.sh
|
||||
run: ./.github/github_pushback.sh "${{ secrets.SSH_PRIVATE_KEY }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user