Skip to content

Commit c314650

Browse files
authored
chore: don't let dependabot pull unstructured-inference (#258)
Given this fix: Unstructured-IO/unstructured#1474 We should get the correct inference whenever unstructured is bumped. We can't take these out of order. Also tweak the gh action to remove `[local-inference]` when `bumping unstructured` message is added.
1 parent 9bc7954 commit c314650

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ updates:
66
interval: "daily"
77
# Only use this to bump our libraries
88
allow:
9-
- dependency-name: "unstructured*"
9+
- dependency-name: "unstructured[local-inference]"
1010

1111
- package-ecosystem: "github-actions"
1212
# NOTE(robinson) - Workflow files stored in the

.github/workflows/bump_libraries.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ jobs:
3232
run: |
3333
pip install pip-tools
3434
make pip-compile
35-
changelog_message="Bump ${{ steps.metadata.outputs.dependency-names }} to ${{ steps.metadata.outputs.new-version }}"
35+
package=${{ steps.metadata.outputs.dependency-names }}
36+
# Strip any [extras] from name
37+
package=${package%\[*}
38+
changelog_message="Bump $package to ${{ steps.metadata.outputs.new-version }}"
3639
./scripts/version-increment.sh "$changelog_message"
3740
make version-sync
3841
- uses: stefanzweifel/git-auto-commit-action@v4

0 commit comments

Comments
 (0)