-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from canonical/update-charm-libs
Update charm libs
- Loading branch information
Showing
15 changed files
with
2,740 additions
and
214 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
on: | ||
schedule: | ||
- cron: '0 8 * * MON' | ||
|
||
jobs: | ||
update-charm-libs: | ||
name: Update Charm Libraries | ||
uses: ./.github/workflows/update_libs.yaml | ||
secrets: | ||
CHARMCRAFT_CREDENTIALS: ${{ secrets.CHARMCRAFT_CREDENTIALS }} | ||
PAT_TOKEN: ${{ secrets.PAT_TOKEN }} | ||
|
||
tests: | ||
name: Run Tests | ||
uses: ./.github/workflows/tests.yaml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# reusable workflow for checking library versions and opening PRs to bump | ||
name: Update Charm Libraries | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
charmcraft_channel: | ||
description: Channel from which to install charmcraft | ||
default: 'latest/candidate' | ||
required: false | ||
type: string | ||
secrets: | ||
CHARMCRAFT_CREDENTIALS: | ||
required: true | ||
PAT_TOKEN: | ||
required: true | ||
workflow_dispatch: | ||
inputs: | ||
charmcraft_channel: | ||
description: Channel from which to install charmcraft | ||
default: 'latest/candidate' | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
update-libs: | ||
name: Update charm libraries | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- run: sudo snap install charmcraft --channel ${{ inputs.charmcraft_channel }} --classic | ||
|
||
- name: update charm libs | ||
run: charmcraft fetch-lib | ||
env: | ||
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_CREDENTIALS }} | ||
|
||
- name: Create Pull Request | ||
id: create-pull-request | ||
uses: canonical/create-pull-request@main | ||
with: | ||
github-token: ${{ secrets.PAT_TOKEN }} | ||
commit-message: Update charm libs | ||
branch-name: 'automated-update-charm-libs' | ||
title: (Automated) Update Charm Libs | ||
body: Update charm libs | ||
upsert: true | ||
ignore-no-changes: true |
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
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
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
Oops, something went wrong.