Skip to content

Commit

Permalink
fix: run git pull in update-libs before opening a PR
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabello authored Jun 21, 2024
1 parent c3e0a8a commit 661849e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/charm-update-libs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
if [[ "$is_pr_open" == "1" ]]; then
if gh pr checks chore/auto-libs; then
echo "CI checks are passing, merging the chore/auto-libs PR"
gh pr merge chore/auto-libs --admin --squash
gh pr merge chore/auto-libs --admin --squash --delete-branch
fi
elif [[ "$is_pr_open" != "0" ]]; then
# The number of open PRs should always be either 0 or 1
Expand Down Expand Up @@ -97,6 +97,7 @@ jobs:

- name: Fetch charm libraries
run: |
git pull
cd "$GITHUB_WORKSPACE/${{ inputs.charm-path }}"
charmcraft fetch-lib
env:
Expand Down

0 comments on commit 661849e

Please sign in to comment.