From 553ee60df593da5bc1d26a1199297332addca9dc Mon Sep 17 00:00:00 2001 From: Brendan McDevitt Date: Thu, 27 Mar 2025 19:57:51 -0500 Subject: [PATCH] use action checkout --- .forgejo/workflows/daily-collect.yaml | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/.forgejo/workflows/daily-collect.yaml b/.forgejo/workflows/daily-collect.yaml index c063cc6..7943660 100644 --- a/.forgejo/workflows/daily-collect.yaml +++ b/.forgejo/workflows/daily-collect.yaml @@ -1,4 +1,4 @@ -oname: Daily Feed Update +name: Daily Feed Update on: schedule: - cron: '0 1 * * *' @@ -16,25 +16,21 @@ jobs: - name: Install Dependencies run: | apt-get update -y && apt-get install -y \ - openssh-client \ git \ + openssh-client \ curl \ ca-certificates - - name: Setup SSH - env: - SSH_PRIVATE_KEY: ${{ secrets.TOKEN_NAME }} - run: | - mkdir -p ~/.ssh - chmod 700 ~/.ssh - echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keyscan git.mcdevitt.tech >> ~/.ssh/known_hosts - - name: Checkout repository - run: | - GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no" \ - git clone git@git.mcdevitt.tech:bpmcdevitt/github_poc_collector.git . + uses: actions/checkout@v4 + with: + repository: bpmcdevitt/github_poc_collector + # Use the appropriate ref if you want a specific branch/commit + # ref: main + # If you need to use SSH + ssh-key: ${{ secrets.TOKEN_NAME }} + # If you have specific known hosts + ssh-known-hosts: git.mcdevitt.tech - name: Setup Rust run: |