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

ci: fix auto-update charm libraries automated flow #284

Merged
merged 1 commit into from
Oct 21, 2024
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
16 changes: 15 additions & 1 deletion .github/workflows/update-libs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,23 @@ jobs:
commit-username: maas-lander
commit-email: [email protected]

detect-open-prs:
name: Check open library updates PRs
needs: update-lib-region
runs-on: ubuntu-22.04
outputs:
open_prs: ${{ steps.open-prs.outputs.open_prs }}
steps:
- name: Check for any pre-existing PR and save it in the output
id: open-prs
run: |
OPEN_PRS="$(gh pr list --head chore/auto-libs --state open --json id --jq 'length')"
echo "open_prs=$OPEN_PRS" >> "$GITHUB_OUTPUT"

update-lib-agent:
name: Check libraries
needs: update-lib-region
needs: detect-open-prs
if: needs.detect-open-prs.outputs.open_prs == '0'
uses: canonical/observability/.github/workflows/charm-update-libs.yaml@main
secrets: inherit
with:
Expand Down
Loading