fix bad syntax daily-collect

This commit is contained in:
Brendan McDevitt 2025-03-27 17:40:22 -05:00
parent 8c8aff3946
commit 4044153abb

View file

@ -1,18 +1,13 @@
name: Daily Feed Update name: Daily Feed Update
on: on:
schedule: schedule:
# Run daily at 1:00 AM UTC (adjust the time as needed)
- cron: '0 1 * * *' - cron: '0 1 * * *'
workflow_dispatch: workflow_dispatch:
# Allow manual triggering of the workflow
jobs: jobs:
update-feed: update-feed:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install Dependencies - name: Install Dependencies
run: | run: |
apk update apk update
@ -27,7 +22,7 @@ jobs:
SSH_PRIVATE_KEY: ${{ secrets.TOKEN_NAME }} SSH_PRIVATE_KEY: ${{ secrets.TOKEN_NAME }}
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
echo "$TOKEN_NAME" | tr -d '\r' > ~/.ssh/id_rsa echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa
ssh-keyscan git.mcdevitt.tech >> ~/.ssh/known_hosts ssh-keyscan git.mcdevitt.tech >> ~/.ssh/known_hosts
ssh-keygen -F git.mcdevitt.tech || true ssh-keygen -F git.mcdevitt.tech || true
@ -52,7 +47,9 @@ jobs:
mkdir -p target mkdir -p target
- name: Run recent feed update - name: Run recent feed update
run: cargo run -- --feed recent run: |
source "$HOME/.cargo/env"
cargo run -- --feed recent
- name: Commit and push results - name: Commit and push results
run: | run: |