Scheduled Build #3324
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Scheduled Build | |
on: | |
schedule: | |
- cron: "0 */4 * * *" | |
jobs: | |
build: | |
name: 'build container' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.10.11 | |
- name: Run image | |
uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: 1.3.2 | |
- name: View poetry | |
run: poetry install && poetry run ./feedme.py | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: tmp.html | |
path: ./tmp.html | |
- name: Download artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: tmp.html | |
- name: Copy artifact to repository | |
run: | | |
mv tmp.html index.html | |
git config user.name "Douglas Land" | |
git config user.email [email protected] | |
git add index.html | |
git commit -m "update index.html" | |
git push |