Comments (9)
PR #69 switch default branch to main
. PR #75 (merged a 43 minutes ago) introduce autodiscovery of default branch (usually between master
and main
).
The simplest solution is use explicit branch (branch: master
) or explicit version (uses: ad-m/[email protected]
). However, in most cases of user of uses: ad-m/github-push-action@master
the new default configuration (branch detection) should work fine.
from github-push-action.
Why not use ${{ github.ref }}
as default? (Another breaking change, though.)
from github-push-action.
It's strange when I see my workflow failed due to this reason.
Since it's a break strange, why not update another version of workflow instread of modifying it directly?
from github-push-action.
@counter2015 , there is no release yet and there is no updates of already released version. Use latest version. master
detect branch automatically and should not raise issues like that.
from github-push-action.
@counter2015 , there is no release yet and there is no updates of already released version. Use latest version.
master
detect branch automatically and should not raise issues like that.
@ad-m I'm not sure, you mean that this issue is fixed in master version?
I didn't specify version, and the ad-m/github-push-action@master
version like following:
- name: Push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
I fixed it by following steps
- delete
main
branch - use
github.ref
in config - trigger wrokflow manually by
on: workflow_dispatch
- name: Push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master
from github-push-action.
This thing broke my build and I got a lot of mails from GitHub.
PR #75 did not fix it for me as I still got mails from GitHub. Part of the stack trace:
Error: Invalid status code: 404
at IncomingMessage.<anonymous> (/home/runner/work/_actions/ad-m/github-push-action/master/start.js:14:21)
at IncomingMessage.emit (events.js:215:7)
at endReadableNT (_stream_readable.js:1184:12)
This may be caused by the repository being private.
Fixed by specifying the branch explicitly using branch: master
.
Lesson learned: Don't rely on @master
(please, don't change that name aswell). Maybe the sample in the readme should always use the latest stable tag instead of @master
.
from github-push-action.
@nikeee , are you using public GitHub instance or GitHub EE or something like that? Actions use GitHub token, so it should works for private repositories too.
I added extra logging to see what is missing 821c9b7 .
from github-push-action.
The res
object (that gets assigned to the error) contained these fields:
url: '',
method: null,
statusCode: 404,
The request (res.req
) contained these fields:
_header: 'GET /repos/<my-gh-name>/<my-private-repo> HTTP/1.1\r\n' +
'User-Agent: github.com/ad-m/github-push-action\r\n' +
'Host: api.github.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_onPendingData: [Function: noopPendingOutput],
agent: [Agent],
socketPath: undefined,
method: 'GET',
path: '/repos/<my-gh-name>/<my-private-repo>',
Using the public GitHub instance (no EE/On-Prem), but a private repository.
from github-push-action.
I believe authorization issue is solved in commit 057a6ba . No longer branch: master
is necessary and discovery of branch should works without any issues.
from github-push-action.
Related Issues (20)
- Push another repo error HOT 22
- support push submodule HOT 4
- Feature Request: Push only the tag, not branch HOT 3
- Push error - require is not defined in ES module scope HOT 7
- failed to push due to "dubious ownership" of directory HOT 3
- Node v12 to v16 HOT 1
- Update to Node.js 16 as Node.js 12 actions are deprecated HOT 1
- Release new version? HOT 2
- GITHUB_TOKEN not working HOT 5
- How to push to a protected branch support HOT 17
- remote: Permission to ssk4ever903/Sreeaknth-April-Assesments.git denied to ssk903. fatal: unable to access 'https://github.com/ssk4ever903/Sreeaknth-April-Assesments.git/': The requested URL returned error: 403 HOT 9
- Latest commit causes actions to fail HOT 7
- Missing input "github_token: ${{ secrets.GITHUB_TOKEN }}". HOT 21
- Enquiring about the proper way for github-push-action to actually fire a workflow (in an organization environment) HOT 8
- Using a Github App Token instead of PAT HOT 14
- Protocol "https:" not supported. Expected "http:" HOT 2
- What minimal set of permissions are required in fine-grained tokens to force push to a protected branch? HOT 4
- Action still uses node12 which is deprecated HOT 4
- Can we have a release which still using node16 HOT 3
- /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-push-action.