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

If this action is used multiple times, the post-action to delete netrc will fail #11

Closed
gobetti opened this issue Mar 25, 2024 · 0 comments · Fixed by #10
Closed

If this action is used multiple times, the post-action to delete netrc will fail #11

gobetti opened this issue Mar 25, 2024 · 0 comments · Fixed by #10

Comments

@gobetti
Copy link

gobetti commented Mar 25, 2024

I need to add 2 different servers so my setup looks like this:

  - uses: extractions/netrc@v2
    with:
      machine: github.com
      username: <username>
      password: <password>
  - uses: extractions/netrc@v2
    with:
      machine: maven.pkg.github.com
      username: <username>
      password: <password>

but I believe each of these will call the post-action from #9 , and because the first call will have deleted the netrc file already, subsequent attempts fail with:

ENOENT: no such file or directory, unlink '/Users/runner/.netrc'
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.

1 participant