Skip to content

Commit 17fd214

Browse files
authored
build: update .OwlBot.yaml for google-cloud-org-policy (#13516)
This PR fixes an issue in the `.OwlBot.yaml` for `google-cloud-org-policy` where there is an erroneous folder `$2` in `/owl-bot-staging/google-cloud-org-policy/google/cloud/orgpolicy/v1` To reproduce the issue run the following commands in a clone of https://github.com/googleapis/googleapis ``` bazelisk build //google/cloud/orgpolicy/v1:orgpolicy-v1-py bazelisk build //google/cloud/orgpolicy/v2:orgpolicy-v2-py ``` Then in this repository run the following command to copy code from `bazel-bin` ``` docker run --rm --user $(id -u):$(id -g) -v $(pwd):/repo -v <path to your bazel-bin>:/bazel-bin gcr.io/cloud-devrel-public-resources/owlbot-cli:latest copy-bazel-bin --source-dir /bazel-bin --dest /repo --config-file=/packages/google-cloud-org-policy/.OwlBot.yaml ``` and then run the post processor with ``` docker run --user $(id -u):$(id -g) --rm -v $(pwd):/repo -w /repo gcr.io/cloud-devrel-public-resources/owlbot-python-mono-repo:latest ``` Repeat the steps again with the updated `.OwlBot.yaml` file and see that the erroneous folder `$2` is no longer present
1 parent 908d742 commit 17fd214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/google-cloud-org-policy/.OwlBot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ deep-remove-regex:
1717
- /owl-bot-staging
1818

1919
deep-copy-regex:
20-
- source: /google/cloud/orgpolicy/(v1)/.*-py
20+
- source: /google/cloud/orgpolicy/(v1)/.*-py/(orgpolicy.*)
2121
dest: /owl-bot-staging/google-cloud-org-policy/$1/google/cloud/orgpolicy/v1/$2
2222
- source: /google/cloud/orgpolicy/(v2)/.*-py
2323
dest: /owl-bot-staging/google-cloud-org-policy/$1

0 commit comments

Comments
 (0)