From 923e35b9a485726d3d27d5d893b4b86c1555e8ed Mon Sep 17 00:00:00 2001 From: Dragomir Penev Date: Sun, 17 Nov 2024 14:40:58 +0200 Subject: [PATCH] Add update-libs flow --- .github/workflows/update-libs.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/update-libs.yaml diff --git a/.github/workflows/update-libs.yaml b/.github/workflows/update-libs.yaml new file mode 100644 index 000000000..4a644d9f2 --- /dev/null +++ b/.github/workflows/update-libs.yaml @@ -0,0 +1,25 @@ +name: Auto-update Charm Libraries +on: + # Manual trigger + workflow_dispatch: + # Check regularly the upstream every four hours + schedule: + - cron: "0 0,4,8,12,16,20 * * *" + +jobs: + update-lib: + name: Check libraries + uses: canonical/observability/.github/workflows/charm-update-libs.yaml@main + secrets: inherit + + detect-open-prs: + name: Check open library updates PRs + needs: update-lib + runs-on: ubuntu-24.04 + outputs: + open_prs: ${{ steps.open-prs.outputs.open_prs }} + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0