-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,31 +26,27 @@ jobs: | |
- name: Create Github project instance | ||
run: cookiecutter . --no-input --config-file cookiecutter_default_gh.yaml | ||
|
||
- name: List cookiecutter | ||
run: | ||
ls ds-gh-default | ||
|
||
|
||
- name: Remote checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: ds-gh-default | ||
path: ds-gh-default2 | ||
ref: main | ||
repository: karllu3/ds-lk-default | ||
fetch-depth: 0 | ||
persist_credentials: true | ||
|
||
- name: List repo | ||
- name: cp repo | ||
run: | ||
ls ds-gh-default | ||
cp -r ds-gh-default/* ds-gh-default2 | ||
|
||
|
||
- name: Set safe directory | ||
run: | | ||
git config --global --add safe.directory /__w/ds-template/ds-template | ||
- name: Prepare git5 | ||
working-directory: ./ds-gh-default | ||
working-directory: ./ds-gh-default2 | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "lukasz karlowski" | ||
|
@@ -59,19 +55,19 @@ jobs: | |
- name: Validate package build | ||
working-directory: ./ds-gh-default | ||
working-directory: ./ds-gh-default2 | ||
run: | | ||
python -m pip install . | ||
- name: Install pre-commit | ||
run: pip3 install pre-commit | ||
|
||
- name: Run pre-commit checks | ||
working-directory: ./ds-gh-default | ||
working-directory: ./ds-gh-default2 | ||
run: pre-commit run --all-files --show-diff-on-failure --color always | ||
|
||
- name: Push repo | ||
working-directory: ./ds-gh-default | ||
working-directory: ./ds-gh-default2 | ||
run: | | ||
git commit -m "Repo after creation" | ||
git push --set-upstream origin ds-default-check | ||
|