diff --git a/.travis.yml b/.travis.yml index 2df140a2281..955120c3061 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,7 +33,7 @@ jobs: python: 3.6 - stage: publish python: 3.6 - script: docker run --rm -e TRAVIS_BUILD_ID=$TRAVIS_BUILD_ID -e TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG -e TRAVIS_COMMIT=$TRAVIS_COMMIT -e GH_TOKEN=$GH_TOKEN -e DOC_REPO_SLUG='Azure/azure-docs-cli-python' -v $PWD:/repo derekbekoe/az-avail-ext-doc-sync:0.1.1 + script: docker run --rm -e TRAVIS_BUILD_ID=$TRAVIS_BUILD_ID -e TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG -e TRAVIS_COMMIT=$TRAVIS_COMMIT -e GH_TOKEN=$GH_TOKEN -e DOC_REPO_SLUG='Azure/azure-docs-cli-python' -v $PWD:/repo derekbekoe/az-avail-ext-doc-sync:0.1.2 env: PURPOSE='SyncAvailableExtensionsDoc' if: repo = Azure/azure-cli-extensions and branch = master and type = push fast_finish: true diff --git a/scripts/avail-ext-doc/README.md b/scripts/avail-ext-doc/README.md index 232e5ba259d..ac9230f8eaf 100644 --- a/scripts/avail-ext-doc/README.md +++ b/scripts/avail-ext-doc/README.md @@ -3,15 +3,15 @@ Automatically create PR to update the document listing the available CLI extensions. ```bash -docker build . -t derekbekoe/az-avail-ext-doc-sync:0.1.0 +docker build . -t derekbekoe/az-avail-ext-doc-sync:0.1.2 ``` To run locally: ```bash -docker run --rm -e TRAVIS_BUILD_ID=$TRAVIS_BUILD_ID -e TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG -e TRAVIS_COMMIT=$TRAVIS_COMMIT -e GH_TOKEN=$GH_TOKEN -e DOC_REPO_SLUG=$DOC_REPO_SLUG -v $PWD:/repo derekbekoe/az-avail-ext-doc-sync:0.1.1 +docker run --rm -e TRAVIS_BUILD_ID=$TRAVIS_BUILD_ID -e TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG -e TRAVIS_COMMIT=$TRAVIS_COMMIT -e GH_TOKEN=$GH_TOKEN -e DOC_REPO_SLUG=$DOC_REPO_SLUG -v $PWD:/repo derekbekoe/az-avail-ext-doc-sync:0.1.2 ``` For example: ```bash -docker run --rm -e TRAVIS_BUILD_ID=1234 -e TRAVIS_REPO_SLUG='azure/azure-cli-extensions' -e TRAVIS_COMMIT=1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik9ol0p -e GH_TOKEN=qwertyuiopasdfghjklzxcvbnm1234567890 -e DOC_REPO_SLUG='azure/azure-docs-cli-python' -v /Repos/azure-cli-extensions:/repo derekbekoe/az-avail-ext-doc-sync:0.1.1 +docker run --rm -e TRAVIS_BUILD_ID=1234 -e TRAVIS_REPO_SLUG='azure/azure-cli-extensions' -e TRAVIS_COMMIT=1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik9ol0p -e GH_TOKEN=qwertyuiopasdfghjklzxcvbnm1234567890 -e DOC_REPO_SLUG='azure/azure-docs-cli-python' -v /Repos/azure-cli-extensions:/repo derekbekoe/az-avail-ext-doc-sync:0.1.2 ``` diff --git a/scripts/avail-ext-doc/main.py b/scripts/avail-ext-doc/main.py index b80e419dfc1..74068c9f4a7 100644 --- a/scripts/avail-ext-doc/main.py +++ b/scripts/avail-ext-doc/main.py @@ -54,7 +54,7 @@ def main(): gh_repo.create_pull( title='Update CLI extensions available doc', body=commit_msg, - head='{}:{}'.format(user.login, local_branch.name), + head='{}'.format(local_branch.name), base='master') if __name__ == '__main__':