Skip to content

Commit

Permalink
template update
Browse files Browse the repository at this point in the history
  • Loading branch information
francesconazzaro committed Jul 1, 2022
1 parent 897e9db commit d610a89
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 6 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/ecmwf-projects/cookiecutter-conda-package",
"commit": "2e5f6d990e8a5e0944a07f24b6524cd861053138",
"commit": "986ffbc157a8b2866cbbdb0c64fff4eb62a28877",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
6 changes: 6 additions & 0 deletions .github/cruft-update-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Weekly update rejection
labels: cruft-update
---
`cruft` was not able to automatically update the cookiecutter template.
Please run locally `make template-update` and resolve the conflicts before pushing to GitHub.
6 changes: 3 additions & 3 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/provision-with-micromamba@v12
with:
environment-file: environment.yml
environment-name: DEVELOP
Expand All @@ -60,7 +60,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/provision-with-micromamba@v12
with:
environment-file: environment.yml
environment-name: DEVELOP
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/provision-with-micromamba@v12
with:
environment-file: environment${{ matrix.extra }}.yml
environment-name: DEVELOP${{ matrix.extra }}
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/weekly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,27 @@ jobs:
with:
python-version: 3.x
- uses: pre-commit/[email protected]
id: update
with:
extra_args: -c .pre-commit-config-weekly.yaml --all-files
- name: Create Pull Request
- uses: andstor/file-existence-action@v1
if: failure()
id: check_files
with:
files: '*.rej'
- name: Open PR
if: failure() && (steps.check_files.outputs.files_exists == 'false')
uses: peter-evans/create-pull-request@v4
with:
title: weekly update
labels: |
cruft-update
- name: Open Issue
if: failure() && (steps.check_files.outputs.files_exists == 'true')
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: .github/cruft-update-template.md
update_existing: true
search_existing: open
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ repos:
rev: 0.7.14
hooks:
- id: mdformat
exclude: cruft-update-template.md
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.3.0
hooks:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2022 European Union.
Copyright 2022, European Union.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down

0 comments on commit d610a89

Please sign in to comment.