Skip to content

Commit 582b59c

Browse files
authored
Merge pull request #53 from jerry-git/cruft-update
Cruft update
2 parents a7d8d48 + dbf3367 commit 582b59c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.cruft.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/woltapp/wolt-python-package-cookiecutter",
3-
"commit": "c4f9ca4bd7fa5a1cb36bfceacdba48194de4120c",
3+
"commit": "9730387755c982e1ef9c968d7d0fae46f8fafc9d",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {

.github/workflows/cookiecutter.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ jobs:
2323
2424
- name: Check if there are changes
2525
id: changes
26-
uses: UnicornGlobal/[email protected]
26+
run: echo "::set-output name=changed::$(git status --porcelain | wc -l)"
2727

2828
- name: apply additional changes and fixes
29-
if: steps.changes.outputs.changed == 1
29+
if: steps.changes.outputs.changed > 0
3030
run: |
3131
poetry lock --no-update # add new dependencies
3232
poetry install
3333
poetry run pre-commit run -a || true # we have to fix other issues manually
3434
3535
- name: Get template versions
3636
id: get_versions
37-
if: steps.changes.outputs.changed == 1
37+
if: steps.changes.outputs.changed > 0
3838
shell: bash
3939
run: |
4040
CURRENT_VERSION=$(git show HEAD:.cruft.json | jello -r "_['commit'][:8]")
@@ -44,7 +44,7 @@ jobs:
4444
4545
- name: Get changelog
4646
id: get_changelog
47-
if: steps.changes.outputs.changed == 1
47+
if: steps.changes.outputs.changed > 0
4848
shell: bash
4949
run: |
5050
TEMPLATE=$(jello -r "_['template']" < .cruft.json)
@@ -67,7 +67,7 @@ jobs:
6767
env:
6868
# a PAT is required to be able to update workflows
6969
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 }}
7171
uses: peter-evans/create-pull-request@v3
7272
with:
7373
token: ${{ env.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)