diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fe5a0955..59a5c9e4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,12 +34,16 @@ jobs: source .venv/bin/activate python src/scripts/snapshot_crawler.py - - name: Commit and push changes + - name: Pull latest changes run: | git config --local user.name "github-actions[bot]" git config --local user.email "github-actions[bot]@users.noreply.github.com" + git pull origin main + + - name: Commit and push changes + run: | git add . git commit -m "Add generated YAML files" - git push + git push origin main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file