From 9cb37cf004af2ce720828d9dcfd00957fd20eaf0 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Mon, 25 Jan 2021 18:34:48 -0500 Subject: [PATCH] Set branch name and token --- .github/workflows/tests.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7bd9d983..464e2366 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,7 +25,10 @@ jobs: name: Run tests with coverage runs-on: ubuntu-latest steps: - - uses: nelonoel/branch-name@v1.0.1 + - name: Get the current branch name + shell: bash + run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}" + id: branch-name - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with: @@ -38,5 +41,6 @@ jobs: env: TOXENV: coveralls DEPENDENCY_INJECTOR_DEBUG_MODE: 1 - COVERALLS_GIT_BRANCH: ${{ BRANCH_NAME }} - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + COVERALLS_GIT_BRANCH: ${{ steps.branch-name.outputs.branch }} + COVERALLS_REPO_TOKEN: Z5o1TZn8rMX4J3Ak4CTBiilJGkFbtzKxj +