5 Commits

Author SHA1 Message Date
37a147b4ad Fixing the checksum and update again
Some checks failed
Rebase Remote Branches / rebase-branches (push) Successful in 3s
Production deployment / Building and pushing (push) Failing after 4s
2025-01-12 12:39:54 +01:00
bfab1bbc43 Fixing workflow
Some checks failed
Rebase Remote Branches / rebase-branches (push) Successful in 4s
Production deployment / Building and pushing (push) Failing after 4s
2025-01-12 12:33:01 +01:00
da1ff9f82d Adding missing dependencies
Some checks failed
Rebase Remote Branches / rebase-branches (push) Successful in 4s
Production deployment / Building and pushing (push) Failing after 5s
2025-01-12 12:26:48 +01:00
128fbdb236 Updating clear script release
Some checks failed
Rebase Remote Branches / rebase-branches (push) Successful in 3s
Production deployment / Building and pushing (push) Failing after 3s
2025-01-12 12:24:02 +01:00
49ac141adb Updating clear script release
Some checks failed
Rebase Remote Branches / rebase-branches (push) Successful in 3s
Production deployment / Building and pushing (push) Failing after 3s
2025-01-12 12:15:36 +01:00

View File

@@ -7,7 +7,7 @@ on:
- 'v*'
env:
HOMEBREW_REPO: "git@gitea.skydust.fr:Skydust/homebrew-clearscript.git"
HOMEBREW_REPO: "https://gitea.skydust.fr/Skydust/homebrew-clearscript.git"
jobs:
build-docker:
@@ -36,20 +36,10 @@ jobs:
--upload-file "${PACKAGE_NAME}.tar.gz" \
"${PKG_URL}"
echo "PKG_SHA=$(sha256 -q "${PACKAGE_NAME}.tar.gz" | tr -d '\n')" >> $GITEA_ENV
echo "PKG_SHA=$(sha256sum "${PACKAGE_NAME}.tar.gz" | cut -d' ' -f1 | tr -d '\n')" >> $GITEA_ENV
echo "PKG_URL=${PKG_URL}" >> $GITEA_ENV
- name: Update homebrew repo
run: |
git config user.email "release@example.com"
git config user.name "Release"
log_info "Overriding git repository auth with PAT"
repo_url="$(git remote get-url origin)"
repo_url="${repo_url#https://}" # Remove HTTPS
GIT_NEW_URL="https://MilaBot:${{ secrets.CI_TOKEN }}@${repo_url}.git"
git remote set-url origin "$GIT_NEW_URL"
git config --local --unset http.https://${GITHUB_SERVER_URL#https://}/.extraheader
log_info "Shallow cloning the brew repo $(yellow)${HOMEBREW_REPO}"
git clone --depth 1 "${HOMEBREW_REPO}" ./brew_repo/
cd brew_repo/
@@ -59,6 +49,16 @@ jobs:
sed -Ei "s|(sha256 \")[^\"]*|\1${PKG_SHA}|" Formula/clearscript.rb
cat Formula/clearscript.rb
git config user.email "release@example.com"
git config user.name "Release"
log_info "Overriding git repository auth with PAT"
repo_url="$(git remote get-url origin)"
repo_url="${repo_url#https://}" # Remove HTTPS
GIT_NEW_URL="https://MilaBot:${{ secrets.CI_TOKEN }}@${repo_url}.git"
git remote set-url origin "$GIT_NEW_URL"
log_info "Pushing the new version"
git add Formula
git commit -m "Updated version to v${NEW_VERSION}"
git push