Skip to content

Commit

Permalink
chore: update project structure to 201e2aa0
Browse files Browse the repository at this point in the history
  • Loading branch information
escaped committed Feb 19, 2021
1 parent b7eb2e1 commit eb317bc
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/escaped/cookiecutter-pypackage.git",
"commit": "ca40a655346dd9d411448b275aacbab0202b3113",
"commit": "201e2aa005db39b8b3ab854658dc5d8da0822e3a",
"context": {
"cookiecutter": {
"author": "Alexander Frenzel",
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,27 @@ jobs:
- name: Update project structure
run: |
cruft update -y
- name: Check if there are changes
id: changes
uses: UnicornGlobal/has-changes-action@v1.0.11

- name: apply additional changes and fixes
if: steps.changes.outputs.changed == 1
run: |
poetry lock --no-update # add new dependencies
poetry install
poetry run pre-commit run -a || true # we have to fix other issue manually
- name: Get new template version
if: steps.changes.outputs.changed == 1
# extract new cooiecutter template version
run: |
echo "TEMPLATE_COMMIT=$(cat .cruft.json | jello -r "_['commit'][:8]")" >> $GITHUB_ENV
# behaviour if PR already exists: https://github.com/marketplace/actions/create-pull-request#action-behaviour
- name: Create Pull Request
if: steps.changes.outputs.changed == 1
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.AUTO_UPDATE_GITHUB_TOKEN }}
Expand All @@ -39,4 +49,3 @@ jobs:
body: ""
branch: chore/cookiecutter-pypackage
delete-branch: true

17 changes: 16 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eb317bc

Please sign in to comment.