Skip to content

Commit fe3073d

Browse files
[DPE-6653] Signal outdated charm libs with a label (#219)
1 parent 8dee223 commit fe3073d

File tree

2 files changed

+33
-20
lines changed

2 files changed

+33
-20
lines changed

.github/workflows/check_libs.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copyright 2025 Canonical Ltd.
2+
# See LICENSE file for licensing details.
3+
name: Check libs
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
on:
10+
pull_request:
11+
paths-ignore:
12+
- '.gitignore'
13+
- '.jujuignore'
14+
- 'LICENSE'
15+
- '**.md'
16+
- 'renovate.json'
17+
18+
jobs:
19+
lib-check:
20+
name: Check libraries
21+
runs-on: ubuntu-latest
22+
timeout-minutes: 5
23+
if: ${{ github.event.pull_request.head.repo.full_name == 'canonical/mysql-router-operator' }}
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0
29+
- name: Check libs
30+
uses: canonical/charming-actions/[email protected]
31+
with:
32+
credentials: "${{ secrets.CHARMHUB_TOKEN }}"
33+
github-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/ci.yaml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,6 @@ jobs:
4848
- name: Upload Coverage to Codecov
4949
uses: codecov/codecov-action@v5
5050

51-
lib-check:
52-
name: Check libraries
53-
runs-on: ubuntu-latest
54-
timeout-minutes: 5
55-
steps:
56-
- name: Checkout
57-
uses: actions/checkout@v4
58-
with:
59-
fetch-depth: 0
60-
- run: |
61-
# Workaround for https://github.com/canonical/charmcraft/issues/1389#issuecomment-1880921728
62-
touch requirements.txt
63-
- name: Check libs
64-
uses: canonical/charming-actions/[email protected]
65-
with:
66-
credentials: "${{ secrets.CHARMHUB_TOKEN }}" # FIXME: current token will expire around 2023-09-23
67-
github-token: "${{ secrets.GITHUB_TOKEN }}"
68-
use-labels: false
69-
fail-build: ${{ github.event_name == 'pull_request' }}
70-
7151
build:
7252
name: Build charm
7353
uses: canonical/data-platform-workflows/.github/workflows/[email protected]

0 commit comments

Comments
 (0)