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

How to use with GitHub Actions? #4

Open
pat-s opened this issue Sep 6, 2023 · 4 comments · May be fixed by #47
Open

How to use with GitHub Actions? #4

pat-s opened this issue Sep 6, 2023 · 4 comments · May be fixed by #47

Comments

@pat-s
Copy link
Contributor

pat-s commented Sep 6, 2023

I am trying to use the plugin directly via the the image in GHA. It feels like I am very close but for some reason I get a complain not being in a git dir - which I am obviously are.

Any ideas?

Example run: https://github.com/pat-s/otf-agent-helm/actions/runs/6097618771/job/16545609556
Config: https://github.com/pat-s/otf-agent-helm/blob/main/.github/workflows/release-helper.yml

@anbraten
Copy link
Member

anbraten commented Sep 6, 2023

That's strange. Could you maybe try some simply git commands:

which git
git status

@anbraten
Copy link
Member

anbraten commented Sep 6, 2023

simple-git is actually just using the "normal" git command, so I would expect git status as a normal command to also fail. Maybe file permissions are off.

@pat-s
Copy link
Contributor Author

pat-s commented Sep 6, 2023

https://github.com/pat-s/otf-agent-helm/actions/runs/6102168552/job/16560037005

Ahh it's the git config --global --add safe.directory thing again. Can the plugin somehow account for this like plugin-git is doing?

@pat-s
Copy link
Contributor Author

pat-s commented Sep 6, 2023

Working config: https://github.com/pat-s/otf-agent-helm/blob/main/.github/workflows/release-helper.yml

Without the git safe.directory part this could be helpful to add to the README?

@anbraten anbraten linked a pull request Nov 9, 2023 that will close this issue
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 a pull request may close this issue.

2 participants