Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit the git config steps #633

Merged
merged 14 commits into from
May 2, 2023
Merged

Edit the git config steps #633

merged 14 commits into from
May 2, 2023

Conversation

cansavvy
Copy link
Collaborator

@cansavvy cansavvy commented Apr 5, 2023

Purpose/implementation Section

What changes are being implemented in this Pull Request?

There's been some issues with git config steps on personal repos: #628

I've been doing some testing here: cansavvy/test-ottr@6245c52

This change made it work, I'm just wondering if it will be okay for org repos as well as wondering if we need it every time we make a commit?

@github-actions
Copy link
Contributor

github-actions bot commented Apr 5, 2023

Re-rendered previews from the latest commit:

Updated at 2023-04-13 with changes from 1bf3c8b

@github-actions
Copy link
Contributor

github-actions bot commented Apr 5, 2023

No broken urls! 🎉
Comment updated at 2023-04-13 with changes from 1bf3c8b

@github-actions
Copy link
Contributor

github-actions bot commented Apr 5, 2023

No spelling errors! 🎉
Comment updated at 2023-04-13 with changes from 1bf3c8b

@cansavvy cansavvy requested a review from avahoffman April 5, 2023 23:47
@cansavvy
Copy link
Collaborator Author

cansavvy commented Apr 5, 2023

The main change here is

 git config --global --add safe.directory ${GITHUB_WORKSPACE}
git config --global user.email "itcrtrainingnetwork@gmail.com"
git config --global user.name "jhudsl-robot"

It is making things work See: https://github.com/fhdsl/AI_for_software/pull/8#event-8940313683

But @avahoffman I don't know why. Can you sanity check this?

@avahoffman
Copy link
Contributor

@cansavvy have you tested doing away with the braces entirely?

e.g.:

git config --global --add safe.directory $GITHUB_WORKSPACE
git config --global user.email "itcrtrainingnetwork@gmail.com"
git config --global user.name "jhudsl-robot"

Also, I used --system and --global flags previously because sometimes the action didn't have permission to set global. No idea if this is still an issue.

@cansavvy
Copy link
Collaborator Author

@avahoffman I'll try it!

@cansavvy
Copy link
Collaborator Author

Oh it looks like you've done this already here: 5f65ee9 Looks like everything worked fine?

@avahoffman
Copy link
Contributor

avahoffman commented Apr 10, 2023

@cansavvy It worked here, but is there any concern that -no brackets- might not work in personal repos?

@cansavvy
Copy link
Collaborator Author

It shouldn't matter. I'm testing it here: cansavvy/test-ottr#1 to make sure.

@cansavvy
Copy link
Collaborator Author

Appears to be working fine! This looks good to me, @avahoffman !

Copy link
Contributor

@avahoffman avahoffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cansavvy sounds good! Let's keep an eye on the --global flag just in case that breaks things 😬

.github/workflows/pull_request.yml Outdated Show resolved Hide resolved
.github/workflows/render-all.yml Outdated Show resolved Hide resolved
.github/workflows/send-updates.yml Outdated Show resolved Hide resolved
.github/workflows/starting-course.yml Outdated Show resolved Hide resolved
.github/workflows/test-send-updates.yml Outdated Show resolved Hide resolved
cansavvy and others added 5 commits April 13, 2023 08:16
Co-authored-by: AM Hoffman <avamariehoffman@gmail.com>
Co-authored-by: AM Hoffman <avamariehoffman@gmail.com>
Co-authored-by: AM Hoffman <avamariehoffman@gmail.com>
Co-authored-by: AM Hoffman <avamariehoffman@gmail.com>
Co-authored-by: AM Hoffman <avamariehoffman@gmail.com>
@cansavvy
Copy link
Collaborator Author

If this passes, I will merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants