starter-kit/.github/workflows/tasks-container-update.yml
Martin Pitt bd082383cf workflows: Move tasks-container-update to Sunday night
We previously ran tasks-container-update and cockpit-lib-update at the
same time, which sometimes collides. Move it to the night between Sunday
and Monday instead, so that we have the updates ready for us to inspect
when we start our week.
2024-03-26 10:50:06 +01:00

34 lines
1 KiB
YAML

name: tasks-container-update
on:
schedule:
- cron: '0 2 * * 1'
# can be run manually on https://github.com/cockpit-project/starter-kit/actions
workflow_dispatch:
jobs:
tasks-container-update:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
statuses: write
container:
image: quay.io/cockpit/tasks
options: --user root
steps:
- name: Set up configuration and secrets
run: |
printf '[user]\n\tname = Cockpit Project\n\temail=cockpituous@gmail.com\n' > ~/.gitconfig
mkdir -p ~/.config
echo '${{ secrets.GITHUB_TOKEN }}' > ~/.config/github-token
- name: Clone repository
uses: actions/checkout@v4
# https://github.blog/2022-04-12-git-security-vulnerability-announced/
- name: Pacify git's permission check
run: git config --global --add safe.directory /__w/starter-kit/starter-kit
- name: Run tasks-container-update
run: |
make bots
bots/tasks-container-update