glorifiedgluer · Jul 6, 2026
Cloning private Forgejo repositories in Actions without Node.js
0Sign in to vote or save
This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
Sometimes cloning a repository doesn't require a complex dependency tree . Plain git is enough! It's possible to leverate the forgejo context for the information needed to clone. The gotcha is that forgejo.server_url contains the protocol (ie. https:// ). You need to strip that before passing to Git: - name : Checkout run : | SERVER="${{ forgejo.server_url }}" git clone --depth=1 --branch "${{…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.