ci: renomear branch master para main
Atualiza referências de master para main em .drone.yml e README.md. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b29baee9c4
commit
fc2f503886
@ -35,13 +35,13 @@ steps:
|
||||
echo "Content length: ${#CONTENT}"
|
||||
SHA_RESP=$(curl -s \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
"https://git.cincoeuzebio.com/api/v1/repos/cinco/Tmuxido/contents/badges/coverage.svg?ref=master")
|
||||
"https://git.cincoeuzebio.com/api/v1/repos/cinco/Tmuxido/contents/badges/coverage.svg?ref=main")
|
||||
echo "SHA response: $SHA_RESP"
|
||||
SHA=$(echo "$SHA_RESP" | jq -r '.sha // empty')
|
||||
echo "SHA: '$SHA'"
|
||||
if [ -n "$SHA" ]; then
|
||||
PAYLOAD=$(jq -n --arg msg "ci: update coverage badge [CI SKIP]" \
|
||||
--arg content "$CONTENT" --arg sha "$SHA" --arg branch "master" \
|
||||
--arg content "$CONTENT" --arg sha "$SHA" --arg branch "main" \
|
||||
'{message: $msg, content: $content, sha: $sha, branch: $branch}')
|
||||
RESPONSE=$(curl -s -X PUT \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
@ -50,7 +50,7 @@ steps:
|
||||
-d "$PAYLOAD")
|
||||
else
|
||||
PAYLOAD=$(jq -n --arg msg "ci: add coverage badge [CI SKIP]" \
|
||||
--arg content "$CONTENT" --arg branch "master" \
|
||||
--arg content "$CONTENT" --arg branch "main" \
|
||||
'{message: $msg, content: $content, branch: $branch}')
|
||||
RESPONSE=$(curl -s -X POST \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
# tmuxido
|
||||
|
||||
[](https://drone.cincoeuzebio.com/cinco/Tmuxido)
|
||||
[](https://drone.cincoeuzebio.com/cinco/Tmuxido)
|
||||
[](https://drone.cincoeuzebio.com/cinco/Tmuxido)
|
||||
[](https://git.cincoeuzebio.com/cinco/Tmuxido/releases)
|
||||

|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user