diff --git a/.github/workflows/generate_default_project.yaml b/.github/workflows/generate_default_project.yaml index 27bc5bc..848f72f 100644 --- a/.github/workflows/generate_default_project.yaml +++ b/.github/workflows/generate_default_project.yaml @@ -8,7 +8,7 @@ jobs: with: repo-path: "github.com/karllu3/ds-lk-default.git" repo-user: karllu3 - repo-email: lukasz.karlowski@deepsense.ai + repo-user-email: lukasz.karlowski@deepsense.ai cookiecutter-profile: cookiecutter_default_gh.yaml secrets: inherit @@ -17,6 +17,6 @@ jobs: with: repo-path: "gitlab.com/lukasz.karlowski/ds-lk-default.git" repo-user: lukasz karlowski - repo-email: lukasz.karlowski@deepsense.ai + repo-user-email: lukasz.karlowski@deepsense.ai cookiecutter-profile: cookiecutter_default_gh.yaml secrets: inherit diff --git a/.github/workflows/generate_default_project_reusable.yaml b/.github/workflows/generate_default_project_reusable.yaml index 8d21335..4a92ea8 100644 --- a/.github/workflows/generate_default_project_reusable.yaml +++ b/.github/workflows/generate_default_project_reusable.yaml @@ -9,7 +9,7 @@ on: repo-user: required: true type: string - repo-email: + repo-user-email: required: true type: string cookiecutter-profile: @@ -18,6 +18,8 @@ on: secrets: REPO_KEY_GITHUB: required: true + REPO_KEY_GITLAB: + required: true jobs: validate-instance: @@ -46,8 +48,7 @@ jobs: - name: Remote checkout run: | - git clone https://oauth2:${{ secrets.REPO_KEY_GITHUB }}@github.com/karllu3/ds-lk-default.git ds-default-repo - git clone https://oauth2:${{ secrets.REPO_KEY_GITHUB }}@github.com/karllu3/ds-lk-default.git + git clone https://oauth2:${{ secrets.REPO_KEY_GITHUB }}@${{ inputs.repo_path }} ds-default-repo cp -r ds-default/. ds-default-repo - name: Set safe directory @@ -57,8 +58,8 @@ jobs: - name: Prepare local git repo working-directory: ./ds-default-repo run: | - git config --local user.email "lukasz.karlowski@deepsense.ai" - git config --local user.name "karllu3" + git config --local user.email "${{ inputs.repo-user }}" + git config --local user.name "${{ inputs.repo-user-email }}" git checkout -b ds-default-check git add .