我需要将我的私有repo工作流( github-actions)的输出提交到公共repo,这是可能的吗?
发布于 2021-06-29 21:41:57
使用标准git工具应该可以做到这一点。将类似以下内容添加到您的工作流中:
cd wherever_your_output_resides
# clone the public repo, or pull if we have a clone already
git pull origin || git clone <url> .
# check out the desired branch (optional)
git checkout some_branch
# stage output
# (you may need to tweak this, e.g. to include files not in the index yet)
git add --all
# commit
git commit -m "<message for the commit>"
# push to the remote repo
git push origingit命令是我想不到的;您可能想要进行一次演练,直到一切顺利进行。
https://stackoverflow.com/questions/68179665
复制相似问题