Commit graph

4 commits

Author SHA1 Message Date
Matej Marusak
e91487b558 workflows: Split npm-update to PF and non PF tasks
Run PF update every Monday and anything else try to update on Tue, Thu and Sat.
2022-04-13 10:39:32 +02:00
Martin Pitt
3dbd37a8c3
workflows: Move npm-update to Ubuntu 20.04
GitHub's 18.04 additional repositories break NPM. As "ubuntu-latest" is
going to switch to 20.04 soon anyway [1], do the jump now.

[1] https://github.com/actions/virtual-environments/issues/1816

Closes #409
2020-12-28 16:17:11 +01:00
Martin Pitt
8771907002 workflows: Fix apt installation in npm-update
GitHub's base VMs don't automatically refresh package indexes, so it can
happen that one of the package dependencies get out of date and are not
available on the mirrors any more.

Run `apt update` first to ensure that the workflow installs the latest
packages.
2020-12-11 10:11:57 +02:00
Martin Pitt
8e16b06df2
Run npm-update in a GitHub workflow
This avoids a lot of moving parts in our infrastructure (webhook,
npm-trigger roundtrip, tasks container), works in exactly the same way
for independent third-party projects, and does not need *any* secret
other than the automatically provided GitHub token.

Let this run early every morning, roughly similar frequency as
cockpituous used to do. Also add a manual trigger, so that we get a
button to run it on demand.

Closes #384
2020-10-20 09:08:08 +02:00