Skip to content

Commit

Permalink
chore: release and permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalshaikh42 committed May 30, 2024
1 parent a62828f commit 83365b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- main
pull_request:

permissions:
contents: write
pull-requests: write

jobs:
formatting:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:

name: release-please


permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion snakemake_storage_plugin_deeporigin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def list_candidate_matches(self) -> Iterable[str]:
# The method has to return concretized queries without any remaining wildcards.
prefix = get_constant_prefix(self.query)
if prefix.startswith(self.bucket):
prefix = prefix[len(self.bucket):]
prefix = prefix[len(self.bucket) :]
return (item.key for item in self.s3bucket().objects.filter(Prefix=prefix))
else:
raise WorkflowError(
Expand Down

0 comments on commit 83365b4

Please sign in to comment.