-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (46 loc) · 1.44 KB
/
update_libs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 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