From e60e144d3e5bbfa2e30c9107086a9f8a44c660dd Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Fri, 30 Apr 2021 12:00:13 +0100 Subject: [PATCH] docs: `repo_token` => `REPO_TOKEN` --- .github/workflows/checkbot.yml | 8 +------- README.md | 10 +++++----- bin/cml-pr.js | 2 +- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/checkbot.yml b/.github/workflows/checkbot.yml index ddd2dbd0e8..d9b1fbb8c7 100644 --- a/.github/workflows/checkbot.yml +++ b/.github/workflows/checkbot.yml @@ -1,18 +1,12 @@ name: checkbot - on: issue_comment: types: [created] - -env: - repo_token: ${{ secrets.TEST_GITHUB_TOKEN }} - jobs: # check that CML container builds properly build-container: if: contains(github.event.comment.body, '/tests') runs-on: [ubuntu-18.04] - steps: - uses: actions/checkout@v2 @@ -26,7 +20,7 @@ jobs: docker tag dvcorg/cml dvcorg/cml-test docker push dvcorg/cml-test docker run --name runner --rm \ - -e "repo_token=$repo_token" \ + -e "REPO_TOKEN=${{ secrets.TEST_GITHUB_TOKEN }}" \ -e "RUNNER_REPO=https://github.com/${GITHUB_REPOSITORY}" \ -e "RUNNER_LABELS=cml-docker" \ -e "RUNNER_IDLE_TIMEOUT=10" \ diff --git a/README.md b/README.md index c3e71c1a2e..63ffe7be60 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ jobs: python train.py - name: Write CML report env: - repo_token: ${{ secrets.GITHUB_TOKEN }} + REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | # Post reports as comments in GitHub PRs cat results.txt >> report.md @@ -174,7 +174,7 @@ jobs: - uses: iterative/setup-cml@v1 - name: Train model env: - repo_token: ${{ secrets.GITHUB_TOKEN }} + REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | pip install -r requirements.txt python train.py @@ -238,7 +238,7 @@ jobs: - uses: actions/checkout@v2 - name: Train model env: - repo_token: ${{ secrets.GITHUB_TOKEN }} + REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} run: | @@ -391,7 +391,7 @@ jobs: - uses: actions/checkout@v2 - name: Deploy runner on EC2 env: - repo_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + REPO_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} run: | @@ -408,7 +408,7 @@ jobs: - uses: actions/checkout@v2 - name: Train model env: - repo_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + REPO_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} run: | pip install -r requirements.txt python train.py diff --git a/bin/cml-pr.js b/bin/cml-pr.js index 04c4121f94..dcde81bbe8 100644 --- a/bin/cml-pr.js +++ b/bin/cml-pr.js @@ -27,7 +27,7 @@ const opts = decamelize( .default('token') .describe( 'token', - 'Personal access token to be used. If not specified in extracted from ENV repo_token.' + 'Personal access token to be used. If not specified in extracted from ENV REPO_TOKEN.' ) .default('driver') .choices('driver', ['github', 'gitlab'])