a year ago
Hello!
I've used GitHub deployment trigger to auto deploy my app once a day.
name: Daily Railway Deployment Trigger
on:
schedule:
- cron: "0 5 * * *"
jobs:
trigger_deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create empty commit
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit --allow-empty -m "Trigger daily deployment"
git pushNow it suddenly stopped with 'Needs_approval' message. How do I bypass it?
Thanks
14 Replies
a year ago
Hey there,
Can you tell me the name of the bot that triggers your deployment?
Thanks,
A
ngelo
Status changed to Awaiting User Response Railway • over 1 year ago
a year ago
Same here, worked perfectly before today
Status changed to Awaiting Railway Response Railway • over 1 year ago
Status changed to Awaiting User Response Railway • over 1 year ago
a year ago
Hello Angelo. Sorry I'm not sure what you mean by "the bot that triggers your deployment". I just created empty commits every day with github workflow .yml file. I'm the only one person using my private repos.
Status changed to Awaiting Railway Response Railway • over 1 year ago
a year ago
Gotcha- if your Railway account is linked to your GitHub, it should work then.
Status changed to Awaiting User Response Railway • over 1 year ago
a year ago
Nope, I still see 'Deploy this commit from an external contributor?'. This all happens in single github account in one private repo with single user. 841ba519-e06f-4b85-b455-2b2846dd440e
Status changed to Awaiting Railway Response Railway • over 1 year ago
a year ago
Hmmm- sorry for the obtuse line of questioning, are you using a GH personal access to deploy it? Even it's it's tied to your account, bot workflows seem to be throwing off our system.
(Either way, I will raise this bug.)
Attachments
Status changed to Awaiting User Response Railway • over 1 year ago
a year ago
Angelo, don't worry about questions. Sorry not sure what personal access is. It's my own private github repo, and all extra configuration I have is stored in my .yml workflow file I mentioned in first message.
Status changed to Awaiting Railway Response Railway • over 1 year ago
a year ago
I guess I am confused as to why it won't deploy when your account is connected: https://github.com/evgrekov/
[Edit] WAIT:
No that is a different user than the one you have in your GH.
Status changed to Awaiting User Response Railway • over 1 year ago
a year ago
When I look at the logs, that "Trigger daily deployment" is using a workflow token. Can you show me the workflow logs and the token it's using?
Attachments
a year ago
Sorry I'm don't know how to get token and if is It safe to share it here. Also this is a public thread I'd like my data such as repo and urls to be deleted please.
These are no more config than I mentioned - I just placed .yml workflow file in the root of my repo and it make empty commits every day. I use this exact file across multiple project, you can test it too. It used to trigger deployment before.
Attachments
Status changed to Awaiting Railway Response Railway • over 1 year ago
a year ago
Hello -- is there an update on this issue? I am running into it as well. I understand the "extra security" feature. But in this case, we are talking about a GitHub Bot that we would want to be able to push to the repo and deploy. How do we get that approved? Here is the related snippet from my workflow file.
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
a year ago
Hey all,
Yes, we just pushed a fix that should unblock y'all- can you confirm that GH webhook pushes go through?
Thanks,
Angelo
Status changed to Awaiting User Response Railway • over 1 year ago
a year ago
Hello Angelo, yes it worked for me, thank you
Status changed to Awaiting Railway Response Railway • over 1 year ago
Status changed to Solved itsrems • over 1 year ago