name: tasks-container-update
on:
schedule:
- cron: '0 2 * * 1'
workflow_dispatch:
jobs:
tasks-container-update:
environment: self
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
statuses: write
container:
image: ghcr.io/cockpit-project/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@v7
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- name: Pacify git's permission check
run: git config --global --add safe.directory /__w/cockpit/cockpit
- name: Run tasks-container-update
run: |
test/common/make-bots
bots/tasks-container-update