-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
fatal: could not read Username for 'https://github.com': No such device or address #146
Comments
Hi, I've tried to reproduce your issue and I think that it might be caused by the fact that you're running the action on every run of the matrix, and GitHub might have some issues with that (I'm able to reproduce the error using a matrix strategy). Let me know if you're able to solve the issue! |
Could you please help me, what should I change to run job dedicated to linting after matrix? |
You could have a job that only runs tests (which in your case seem to only be running the build), and that will use the matrix strategy. Then you can create a second job, with all the steps that you need to use to update the repo, which include my action. This second job should run only once, with no matrix. Here's the outline of the workflow: jobs:
test:
strategy:
matrix:
node-version: [14.x, 15.x]
steps:
# checkout, node, ...
lint:
steps:
# run linter, add-and-commit, ... |
Thank you @EndBug, I'll give it a try :). |
Did you find a resolution to this? I'm getting an identical error with a completely different workflow |
I also had a similar issue in this run. Not sure where's the problem.. |
@Fadelis I honestly have no idea of why it's happening. Here's what I thought:
I guess I'll open an issue in https://github.com/steveukx/git-js, since that's the package I'm using: they should at least be able figure out if the problem is in my implementation. Let me know about the email thing. |
Well I don't have the |
@Fadelis Let me know if that changes anything 👍🏻 |
same issue, no matrix, here's the workflow file name: PlantUML
on:
push:
paths:
- '**.puml'
jobs:
plantuml:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Get changed UML files
id: getfile
run: |
echo "::set-output name=files::$(git diff-tree -r --no-commit-id --name-only ${{ github.sha }} | grep '.puml' | xargs)"
- name: UML files considered echo output
run: |
echo ${{ steps.getfile.outputs.files }}
- name: Generate SVG Diagrams
uses: cloudbees/plantuml-github-action@master
with:
args: -v -tsvg ${{ steps.getfile.outputs.files }}
- name: get remote branch name
id: branch
run: |
BRANCH=$(echo $GITHUB_REF | cut --delimiter / --fields '3-')
echo "::set-output name=name::$BRANCH"
- uses: EndBug/add-and-commit@v7
with:
message: 'generate SVG for PlantUML'
add: '*.svg' and the output
|
fixed by using a different action to push name: PlantUML
on:
push:
paths:
- '**.puml'
jobs:
plantuml:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Get changed UML files
id: getfile
run: |
echo "::set-output name=files::$(git diff-tree -r --no-commit-id --name-only ${{ github.sha }} | grep '.puml' | xargs)"
- name: UML files considered echo output
run: |
echo ${{ steps.getfile.outputs.files }}
- name: Generate SVG Diagrams
uses: cloudbees/plantuml-github-action@master
with:
args: -v -tsvg ${{ steps.getfile.outputs.files }}
- uses: EndBug/add-and-commit@v7
with:
message: 'generate SVG for PlantUML'
add: '*.svg'
push: false
- uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }} |
@xenoterracide Well, of course you can use another action to push, you could also run I've tried editing the potential fix, according to what the author of simple-git told me, could you try it? @Fadelis @xenoterracide |
no, that didn't fix the problem, but moving to |
@xenoterracide Whoa, I didn't even consider that that could be the issue! Looking back, every workflow that has been posted in this issue was using Thanks a lot to everyone :) |
Thank you for such a useful action :). It worked well, but today I trapped on an issue.
Describe the bug
Job is failed, action cannot push to repository.
Workflow used
Here is current config.
Expected behavior
I expect that fixes will be pushed to repo.
The text was updated successfully, but these errors were encountered: