File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"template" : " https://github.com/woltapp/wolt-python-package-cookiecutter" ,
3
- "commit" : " c4f9ca4bd7fa5a1cb36bfceacdba48194de4120c " ,
3
+ "commit" : " 9730387755c982e1ef9c968d7d0fae46f8fafc9d " ,
4
4
"checkout" : null ,
5
5
"context" : {
6
6
"cookiecutter" : {
Original file line number Diff line number Diff line change @@ -23,18 +23,18 @@ jobs:
23
23
24
24
- name : Check if there are changes
25
25
id : changes
26
- uses : UnicornGlobal/[email protected]
26
+ run : echo "::set-output name=changed::$(git status --porcelain | wc -l)"
27
27
28
28
- name : apply additional changes and fixes
29
- if : steps.changes.outputs.changed == 1
29
+ if : steps.changes.outputs.changed > 0
30
30
run : |
31
31
poetry lock --no-update # add new dependencies
32
32
poetry install
33
33
poetry run pre-commit run -a || true # we have to fix other issues manually
34
34
35
35
- name : Get template versions
36
36
id : get_versions
37
- if : steps.changes.outputs.changed == 1
37
+ if : steps.changes.outputs.changed > 0
38
38
shell : bash
39
39
run : |
40
40
CURRENT_VERSION=$(git show HEAD:.cruft.json | jello -r "_['commit'][:8]")
44
44
45
45
- name : Get changelog
46
46
id : get_changelog
47
- if : steps.changes.outputs.changed == 1
47
+ if : steps.changes.outputs.changed > 0
48
48
shell : bash
49
49
run : |
50
50
TEMPLATE=$(jello -r "_['template']" < .cruft.json)
67
67
env :
68
68
# a PAT is required to be able to update workflows
69
69
GITHUB_TOKEN : ${{ secrets.AUTO_UPDATE_GITHUB_TOKEN }}
70
- if : ${{ steps.changes.outputs.changed == 1 && env.GITHUB_TOKEN != 0 }}
70
+ if : ${{ steps.changes.outputs.changed > 0 && env.GITHUB_TOKEN != 0 }}
71
71
uses : peter-evans/create-pull-request@v3
72
72
with :
73
73
token : ${{ env.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments