-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
idea #2
base: main
Are you sure you want to change the base?
idea #2
Conversation
Hello, I really liked your suggestion, I created this action because back in the day, we don't have a way to test programs in CI, but when GitHub Codespaces got released, I moved all the live testing away from Actions and into Codespaces, this is why I haven't updated this action since then since I'm currently not using this action. Since knowing that there are still people like you are using this action, I think I will update this if I got time. About the move to JavaScript based action, I think that will never happen in the near future. I'm a self-proclaimed expert in Bash and PowerShell. I really wanted to create an action back then, but when composite based action are now possible, I successfully used my scripting skills to create an action like this. Furthermore, I have only written JavaScript in the client side, not in the server side, so if we moved to JavaScript, I think I cannot maintain this action anymore. I recommend you to just release a JavaScript-based setup-cloudflared action that you maintain and everyone can use. For now, I will try implementing your suggestions in Bash and PowerShell way. |
I re-did everything using Bash. The only part that I got tripped up by is the "find the most recent version that satisfies this semver range: ^2023.6.6". I solved this by bundling a Let me know if this Bash-only style action is acceptable |
upon further googling i think that this https://github.com/qzb/sh-semver is an option? maybe. problem is that it has some weird errors (? i think they're errors) and is also quite slow compared to semver.mjs jcbhmr@PIG-2016:~/Documents/semversh$ time bash semver.sh -r "^2023.0.0" $(gh release list --repo cloudflare/cloudflared
)
semver.sh: line 138: [: Latest: integer expression expected
semver.sh: line 142: [: Latest: integer expression expected
semver.sh: line 138: [: Latest: integer expression expected
semver.sh: line 142: [: Latest: integer expression expected
semver.sh: line 138: [: Latest: integer expression expected
semver.sh: line 142: [: Latest: integer expression expected
semver.sh: line 138: [: Latest: integer expression expected
semver.sh: line 142: [: Latest: integer expression expected
semver.sh: line 138: [: Latest: integer expression expected
semver.sh: line 142: [: Latest: integer expression expected
semver.sh: line 138: [: Latest: integer expression expected
semver.sh: line 142: [: Latest: integer expression expected
2023.1.0
2023.1.0
2023.2.1
2023.2.1
2023.2.2
2023.2.2
2023.3.0
2023.3.0
2023.3.1
2023.3.1
2023.4.0
2023.4.0
2023.4.1
2023.4.1
2023.4.2
2023.4.2
2023.5.0
2023.5.0
2023.5.1
2023.5.1
2023.6.0
2023.6.0
2023.6.1
2023.6.1
2023.7.0
2023.7.0
2023.7.1
2023.7.1
2023.7.2
2023.7.2
2023.7.3
2023.7.3
2023.8.0
2023.8.0
2023.8.1
2023.8.1
2023.8.2
2023.8.2
2023.10.0
2023.10.0
real 0m17.655s
user 0m15.114s
sys 0m4.962s |
DO NOT MERGE. expect this pr to be edited a bunch.
Hello! 👋
I'm the guy who saw this action like 6 months ago and thought "hey that doesn't quite fit what I want to do; let me make my own version". Now I'd like to re-merge some of the best parts of that adventure back into this project. It's the de-facto setup-cloudflared action out there and I figured I might as well try to help improve that rather than trying to make my own version.
This is a "hey look at this; is this a good direction?" pr and to make you aware of my fork and that id like to contribute.
changes so far:
npm start
,npm stop
,systemctl start
,systemctl stop
.run:
key similar to how- run: <cmd>
works normally; now it's just nested a bit.- uses: .../setup-cloudfared
'swith
inputscloudflared-version
inputuses js instead of composite for the root setup-cloudflared actionv1
tag for anyv1.x.y
releaseref #1
end goal:
notes:
cloudflared
for its free no-signupcloudflared tunnel --url
trycloudflare feature. https://try.cloudflare.com/ -- this means im not very familiar with the other stuff cloudflared does (cause i havent done it lol). id like your input on how/what that does.