mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-06 14:40:48 +03:00
Experiment with branch name
This commit is contained in:
parent
2d3cdc01d2
commit
cb76b2dc73
12
.github/workflows/tests-and-linters.yml
vendored
12
.github/workflows/tests-and-linters.yml
vendored
|
@ -28,10 +28,14 @@ jobs:
|
|||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
steps:
|
||||
- name: Get the current branch name
|
||||
- name: Get branch name (merge)
|
||||
if: github.event_name != 'pull_request'
|
||||
shell: bash
|
||||
run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
|
||||
id: branch-name
|
||||
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | tr / -)" >> $GITHUB_ENV
|
||||
- name: Get branch name (pull request)
|
||||
if: github.event_name == 'pull_request'
|
||||
shell: bash
|
||||
run: echo "BRANCH_NAME=$(echo ${GITHUB_HEAD_REF} | tr / -)" >> $GITHUB_ENV
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
|
@ -41,7 +45,7 @@ jobs:
|
|||
- run: tox
|
||||
env:
|
||||
TOXENV: coveralls
|
||||
COVERALLS_GIT_BRANCH: ${{ steps.branch-name.outputs.branch }}
|
||||
COVERALLS_GIT_BRANCH: ${{ env.BRANCH_NAME }}
|
||||
|
||||
linters:
|
||||
name: Run linters
|
||||
|
|
Loading…
Reference in New Issue
Block a user