At the moment the automatic workflow does not work and aborts with a permission error.
To fix this, the workflow would need other permissions:
# permissions
permissions:
contents: write
packages: write
Since scheduled workflow runs are not guaranteed to run at the exact set time and may even abort completely, I would suggest slightly modifying the fetch part.
Set the workflow cron to hourly, but make the following changes in the fetch script itself:
- filename only with date without time.
- wget downloads only if the file does not already exist. (-nc or -N option - which is better?)
This guarantees that the download for a day only takes place 1x and by the hourly workflow schedule is pretty much guaranteed that fetch should run at least once a day.
At the moment the automatic workflow does not work and aborts with a permission error.
To fix this, the workflow would need other permissions:
Since scheduled workflow runs are not guaranteed to run at the exact set time and may even abort completely, I would suggest slightly modifying the fetch part.
Set the workflow cron to hourly, but make the following changes in the fetch script itself:
This guarantees that the download for a day only takes place 1x and by the hourly workflow schedule is pretty much guaranteed that fetch should run at least once a day.