Skip to content

workflow/fetch problems + fixes #2

Description

@foosint

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:

  1. filename only with date without time.
  2. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions