File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 24
24
run : poetry install --no-interaction --no-root
25
25
26
26
- name : Test
27
+ id : test
27
28
run : |
28
29
poetry run pytest --cov=commitomatic --cov-report=xml
29
30
curl https://deepsource.io/cli | sh
@@ -36,28 +37,28 @@ jobs:
36
37
echo "branch=badges" >> $GITHUB_OUTPUT
37
38
env :
38
39
DEEPSOURCE_DSN : ${{ secrets.DEEPSOURCE_DSN }}
39
- BADGE_PATH : ${{ steps.extract_branch.outputs.branch }} /test-badge .svg
40
+ BADGE_PATH : badges /test-coverage .svg
40
41
41
42
- name : Generate the badge SVG image
42
43
43
44
id : badge
44
45
with :
45
46
label : ' Test coverage'
46
- status : ${{ steps.coverage .outputs.lines }}
47
+ status : ${{ steps.test .outputs.lines }}
47
48
color : ' blue,555,daf'
48
- path : ${{ steps.coverage .outputs.path }}
49
+ path : ${{ steps.test .outputs.path }}
49
50
50
51
- name : Upload badge as artifact
51
52
uses : actions/upload-artifact@v3
52
53
with :
53
54
name : badge
54
- path : ${{ steps.coverage .outputs.path }}
55
+ path : ${{ steps.test .outputs.path }}
55
56
if-no-files-found : error
56
57
57
58
- name : Commit badge
58
59
continue-on-error : true
59
60
env :
60
- BADGE : ${{ steps.coverage .outputs.path }}
61
+ BADGE : ${{ steps.test .outputs.path }}
61
62
run : |
62
63
git config --local user.email "[email protected] "
63
64
git config --local user.name "GitHub Action"
69
70
if : ${{ success() }}
70
71
with :
71
72
github_token : ${{ secrets.GITHUB_TOKEN }}
72
- branch : ${{ steps.coverage .outputs.branch }}
73
+ branch : ${{ steps.test .outputs.branch }}
You can’t perform that action at this time.
0 commit comments