Unhelpful error "Remote repository required" #38

Open
opened 2025-02-05 14:42:52 +00:00 by Dreamboat9222 · 2 comments

Using this action I get "Remote repository required: Specify ID via --repo or execute from a local git repo.". the error is unhelpful. What should I do with this ? How should I fix this ?

Task :

      - name: Create Release
        id: create_release
        uses: https://code.forgejo.org/actions/forgejo-release@v1
        with:
          token: ${{ secrets.RELEASETOKEN }}
          direction: upload
          url: https://git.domain.com
          repo: Projects/monorepo
          release-dir: apps/website/build
          verbose: true
          tag: "website-latest"
          override: true

I tried with and without a url, repo, tag. The error is always there.

Forgejo is running inside docker, ssh on another port.

RELEASETOKEN is specified inside the repo's secret and is a user token generated from /user/settings/applications with perms user:read and repository:read and write.

Output:

+ setup_tea
+ test -f /tmp/tmp.EWQ3IP5X3W/tea
+ curl -sL https://dl.gitea.io/tea/0.9.0/tea-0.9.0-linux-amd64
+ chmod +x /tmp/tmp.EWQ3IP5X3W/tea
+ rm -f /root/.config/tea/config.yml
+ GITEA_SERVER_TOKEN=***
+ /tmp/tmp.EWQ3IP5X3W/tea login add --url https://git.intra.ackanet.com
Login as my.name on https://git.domain.com successful. Added this login as git.domain.com
+ maybe_sign_release

....

+ echo website-latest
++ sed -e 's/^v//' -e 's/[^a-zA-Z0-9]/-/g'
+ anchor=website-latest
+ /tmp/tmp.EWQ3IP5X3W/tea release create -a apps/website/build/env.js -a apps/website/build/handler.js -a apps/website/build/index.js -a apps/website/build/shims.js -a -a apps/website/build/client: -a _app -a admin -a demo -a favicon-192.png -a favicon-32.png -a favicon-360.png -a favicon.ico -a favicon.png -a fonts -a icons -a products -a videos -a -a apps/website/build/prerendered: -a seo -a -a apps/website/build/server: -a chunks -a index.js -a index.js.map -a manifest.js -a manifest.js.map --repo Projects/monorepo --note '' --tag website-latest --title website-latest --draft
+ grep --quiet 'Unknown API Error: 500' /tmp/tmp.EWQ3IP5X3W/tea.log
+ cat /tmp/tmp.EWQ3IP5X3W/tea.log
NOTE: no gitea login detected, falling back to login 'git.domain.com'
Remote repository required: Specify ID via --repo or execute from a local git repo.
+ return 1
Using this action I get "Remote repository required: Specify ID via --repo or execute from a local git repo.". the error is unhelpful. What should I do with this ? How should I fix this ? Task : ``` - name: Create Release id: create_release uses: https://code.forgejo.org/actions/forgejo-release@v1 with: token: ${{ secrets.RELEASETOKEN }} direction: upload url: https://git.domain.com repo: Projects/monorepo release-dir: apps/website/build verbose: true tag: "website-latest" override: true ``` I tried with and without a url, repo, tag. The error is always there. Forgejo is running inside docker, ssh on another port. `RELEASETOKEN` is specified inside the repo's secret and is a user token generated from `/user/settings/applications` with perms user:read and repository:read and write. Output: ``` + setup_tea + test -f /tmp/tmp.EWQ3IP5X3W/tea + curl -sL https://dl.gitea.io/tea/0.9.0/tea-0.9.0-linux-amd64 + chmod +x /tmp/tmp.EWQ3IP5X3W/tea + rm -f /root/.config/tea/config.yml + GITEA_SERVER_TOKEN=*** + /tmp/tmp.EWQ3IP5X3W/tea login add --url https://git.intra.ackanet.com Login as my.name on https://git.domain.com successful. Added this login as git.domain.com + maybe_sign_release .... + echo website-latest ++ sed -e 's/^v//' -e 's/[^a-zA-Z0-9]/-/g' + anchor=website-latest + /tmp/tmp.EWQ3IP5X3W/tea release create -a apps/website/build/env.js -a apps/website/build/handler.js -a apps/website/build/index.js -a apps/website/build/shims.js -a -a apps/website/build/client: -a _app -a admin -a demo -a favicon-192.png -a favicon-32.png -a favicon-360.png -a favicon.ico -a favicon.png -a fonts -a icons -a products -a videos -a -a apps/website/build/prerendered: -a seo -a -a apps/website/build/server: -a chunks -a index.js -a index.js.map -a manifest.js -a manifest.js.map --repo Projects/monorepo --note '' --tag website-latest --title website-latest --draft + grep --quiet 'Unknown API Error: 500' /tmp/tmp.EWQ3IP5X3W/tea.log + cat /tmp/tmp.EWQ3IP5X3W/tea.log NOTE: no gitea login detected, falling back to login 'git.domain.com' Remote repository required: Specify ID via --repo or execute from a local git repo. + return 1 ```
Contributor

Could you please try again with the latest release https://code.forgejo.org/actions/forgejo-release/tags?

Could you please try again with the latest release https://code.forgejo.org/actions/forgejo-release/tags?
Contributor

-a apps/website/build/shims.js -a -a apps/website/build/client: -a _ the problem comes from this part of the command line where you can see the -a -a repeated which garbles the interpretation of the arguments. This is a bug that was fixed in the more recent releases but existed in v1.

`-a apps/website/build/shims.js -a -a apps/website/build/client: -a _` the problem comes from this part of the command line where you can see the `-a -a` repeated which garbles the interpretation of the arguments. This is a bug that was fixed in the more recent releases but existed in v1.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
actions/forgejo-release#38
No description provided.