Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow charms to select which charmcraft channel is used when updating charm libs #453

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/auto_update_charm_libs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ name: Auto-update Charm Libraries
on:
workflow_call:
inputs:
charmcraft-channel:
description: Charmcraft channel to use for publishing the charm and resources
type: string
default: latest/stable
working-directory:
type: string
description: The working directory for jobs
Expand All @@ -26,7 +30,7 @@ jobs:
- name: Check libs
working-directory: ${{ inputs.working-directory }}
run: |
sudo snap install charmcraft --classic --channel latest/stable
sudo snap install charmcraft --classic --channel {{ inputs.charmcraft-channel }}
charmcraft fetch-lib
env:
CHARMCRAFT_AUTH: ${{ secrets.CHARMHUB_TOKEN }}
Expand Down
Loading