modify daily-collect
This commit is contained in:
parent
a3aa9ed49c
commit
036a28ca7d
1 changed files with 8 additions and 5 deletions
|
@ -12,23 +12,26 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Install SSH
|
||||
- name: Install SSH and Git
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y openssh-client
|
||||
sudo apt-get install -y openssh-client git
|
||||
|
||||
- name: Setup SSH
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.TOKEN_NAME }}
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.TOKEN_NAME }}" > ~/.ssh/id_rsa
|
||||
echo "$TOKEN_NAME" | tr -d '\r' > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan git.mcdevitt.tech >> ~/.ssh/known_hosts
|
||||
ssh-keygen -F git.mcdevitt.tech || true
|
||||
|
||||
- name: Checkout repository
|
||||
run: |
|
||||
GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no" \
|
||||
git clone git@git.mcdevitt.tech:bpmcdevitt/github_poc_collector.git .
|
||||
|
||||
|
||||
- name: Setup Rust
|
||||
run: |
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
|
|
Loading…
Add table
Reference in a new issue