PCL2 icon indicating copy to clipboard operation
PCL2 copied to clipboard

让工作流编译支持替换 client_id 和 x-api-key

Open allMagicNB opened this issue 1 year ago • 22 comments

替换需要前往 https://github.com/{你的GitHubID}/{你的PCL2Repo的名称}/settings/secrets/actions/new 添加 Secret,分别为 client_id (#3940 微软登录所使用的) 和 x_api_key (CurseForge API 用的 API Key,因为 Secrets 名称符号只能用下划线,才从 x-api-key 改为 x_api_key)。

allMagicNB avatar Jul 11 '24 11:07 allMagicNB

等待 #3940

LTCatt avatar Jul 11 '24 12:07 LTCatt

等待 #3940

目前直接合并不会出问题,在替换时没找到目标替换不会报错…… 总之这个功能应该是越早推出越好。

allMagicNB avatar Jul 11 '24 12:07 allMagicNB

@LTCatt

allMagicNB avatar Jul 11 '24 12:07 allMagicNB

等 #3940 先,这个功能就算合并了现在也没用

MoYuan-CN avatar Jul 11 '24 13:07 MoYuan-CN

等 #3940 先,这个功能就算合并了现在也没用

对你没用 ≠ 对别人没用

allMagicNB avatar Jul 11 '24 13:07 allMagicNB

别急,到时候 #3940 完了这里指不定还得改呢……

LTCatt avatar Jul 11 '24 16:07 LTCatt

@3gf8jv4dv What does it look like (

allMagicNB avatar Jul 12 '24 07:07 allMagicNB

Overall good, but some Warning content will appear when GHA is running. This type of content appears in Create Release and Upload Release Asset

Warning: The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Because GitHub no longer maintains the Release repository.I will replace it.

allMagicNB avatar Jul 14 '24 14:07 allMagicNB

我尚不确定这样的secret实现是否大丈夫,但看起来还行。 回声洞有考虑在内吗?

Silverteal avatar Jul 16 '24 10:07 Silverteal

回声洞有考虑在内吗?

allMagicNB avatar Jul 16 '24 10:07 allMagicNB

我尚不确定这样的secret实现是否大丈夫,但看起来还行。 回声洞有考虑在内吗?

回声洞怎么可能做成 env 太草了

z0z0r4 avatar Jul 16 '24 12:07 z0z0r4

Any progress? :eyes:

回声洞有考虑在内吗?

Umm... In the open-source variant on GitHub, Echo Hole will only show 为便于维护,开源内容中不包含百宝箱功能……

3gf8jv4dv avatar Jul 16 '24 16:07 3gf8jv4dv

回家再修=。=

allMagicNB avatar Jul 17 '24 09:07 allMagicNB

突然感觉发布 Release 没必要……?

allMagicNB avatar Jul 18 '24 10:07 allMagicNB

应该确实用不到发布 Release 功能……

LTCatt avatar Jul 18 '24 13:07 LTCatt

Breaking changes: X_API_KEY -> CURSEFORGE_API_KEY

If someone pulls the latest code, then the repository secret needs to be changed.

3gf8jv4dv avatar Aug 03 '24 17:08 3gf8jv4dv

友情提示一下,Actions 是有限制时长的,超了只能等下个月。

allMagicNB avatar Aug 05 '24 22:08 allMagicNB

友情提示一下,Actions 是有限制时长的,超了只能等下个月。

?公开仓库中 actions 无限时长免费用 如果你试过就知道其实在公开仓库中使用 actions 是不消耗每个月 2000 分钟的时长的

截图

Screenshot_20240806_091213.jpg


Deep-Dark-Forest avatar Aug 06 '24 01:08 Deep-Dark-Forest

免费时长而已。

allMagicNB avatar Aug 06 '24 01:08 allMagicNB

免费时长而已。

不信可以自己试试,在公开仓库中使用 actions 是不消耗每个月的免费时长的 只有在 private 仓库中才会消耗

Deep-Dark-Forest avatar Aug 06 '24 01:08 Deep-Dark-Forest

图片

image

image

对于 Public 仓库使用的 Action 并没有计入账户使用 事实上 GitHub 大部分服务对于 Public 仓库是没有计费的

wuliaodexiaoluo avatar Aug 06 '24 07:08 wuliaodexiaoluo

将支持替换 CommitHash 并输出到日志开头。

allMagicNB avatar Aug 31 '24 08:08 allMagicNB