Auto-update Charm Libraries #710
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto-update Charm Libraries | |
on: | |
# Manual trigger | |
workflow_dispatch: | |
schedule: | |
- cron: "33 22 * * 5" | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
update-lib: | |
name: Check libraries | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Fetch charm libraries | |
run: | | |
sudo snap install charmcraft --classic | |
charmcraft fetch-lib | |
- name: Create a PR for local changes | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
commit-message: "chore: update charm libraries" | |
committer: "Github Actions <[email protected]>" | |
author: "Github Actions <[email protected]>" | |
title: "Update charm libraries" | |
body: | | |
Automated action to fetch latest version of charm libraries. The branch of this PR | |
will be wiped during the next check. Unless you really know what you're doing, you | |
most likely don't want to push any commits to this branch. | |
branch: "chore/auto-libs" | |
delete-branch: true |