OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

fix ghcr workflow throw error when in the fork repo.

Open iFurySt opened this issue 1 year ago • 2 comments

if we aren't compatible, it will send too many workflow errors to email when push in fork repo.

image

image

image

iFurySt avatar Apr 18 '24 07:04 iFurySt

Nice! Does this work without granting package permissions manually?

There might be a cleaner way to do this, e.g. by having the config.sh files set ORG_NAME and PACKAGE_NAME separately. But LGTM as-is

rbren avatar Apr 18 '24 10:04 rbren

yes, it works and doesn't need to manually grant(actually, i think personal doesn't have this setting) if the forked repo belongs to the user but the org.

i've just split DOCKER_REPOSITORY for cleaner according to your advice 🥳

iFurySt avatar Apr 18 '24 11:04 iFurySt

Nice! Does this work without granting package permissions manually?

ha, I've found it's necessary in another repo. 😅

https://github.com/personal_or_org/repo_name/settings/actions

just for a record here.

iFurySt avatar Apr 22 '24 09:04 iFurySt