Commit graph

7 commits

Author SHA1 Message Date
Martin Pitt
b60dd6f945 workflows: Explicitly set minimal token permissions
This will allow us to set the default token permissions to restricted,
and thus avoid accidentally introducing over-privileged new workflows.
2023-04-20 11:05:15 +02:00
Martin Pitt
3bc60dd9bb workflows: Run on ubuntu-latest
That is Ubuntu 22.04 now. Avoid letting this get out of date.

Taken from eb2b320c95
2023-04-20 11:05:15 +02:00
Jelle van der Waa
02771f6e37 .github: update checkout action to v3 2023-04-17 16:14:49 +02:00
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