Skip to content

Commit

Permalink
fix: commercial use wrong br file config
Browse files Browse the repository at this point in the history
使用revision字段配置
  • Loading branch information
hudeng-go committed Jul 8, 2024
1 parent 1b55392 commit 08a93fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/02-build-obs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,15 @@ jobs:
echo "commercial package, need use private git ssh address!!!"
new_content=" <param name=\"url\">${GITADDR}</param>"
sed -i "3c ${new_content}" _service
revision=" <param name=\"revision\">${TAGSHA}</param>"
sed -i "3a ${revision}" _service
echo "commercial package, disable build source!!!"
echo "exec dpkg-buildpackage -us -uc --build=any,all \"\$@\"" > build.script
curl -X PUT -u golf66:$OSCPASS -d @build.script -s "$uploadurl/build.script"
fi
curl -X PUT -u golf66:$OSCPASS -d @_service -s "$uploadurl/_service"
fi
if [ $needbuild = "true" ];then
if [ $needbuild = "true" -a "$COMPONENT" != "commercial" ];then
curl -o _branch_request https://raw.githubusercontent.com/deepin-community/Repository-Integration/master/.github/workflows/obs-br.tpl
sed -i "s#REPO#$REPO#g" _branch_request
sed -i "s#TAGSHA#$TAGSHA#g" _branch_request
Expand Down

0 comments on commit 08a93fa

Please sign in to comment.