.github: add Cockpit library update action
This action works similar to the npm-update workflow, it creates a PR every Thursday (usually after the Cockpit release) to update the COCKPIT_REPO_COMMIT to the latest version.
This commit is contained in:
parent
02771f6e37
commit
a68429fad0
1 changed files with 27 additions and 0 deletions
27
.github/workflows/cockpit-lib-update.yml
vendored
Normal file
27
.github/workflows/cockpit-lib-update.yml
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
name: cockpit-lib-update
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 2 * * 4'
|
||||
# can be run manually on https://github.com/cockpit-project/starter-kit/actions
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
cockpit-lib-update:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up dependencies
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y make
|
||||
|
||||
- name: Set up configuration and secrets
|
||||
run: |
|
||||
printf '[user]\n\tname = Cockpit Project\n\temail=cockpituous@gmail.com\n' > ~/.gitconfig
|
||||
echo '${{ secrets.GITHUB_TOKEN }}' > ~/.config/github-token
|
||||
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Run cockpit-lib-update
|
||||
run: |
|
||||
make bots
|
||||
bots/cockpit-lib-update
|
||||
Loading…
Add table
Add a link
Reference in a new issue