-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix auto-update charm libraries automated flow
- Loading branch information
1 parent
5f588aa
commit 7b36e08
Showing
1 changed file
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|