Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@ jobs:
- uses: actions/checkout@v4

- name: Install jq
uses: sergeysova/jq-action@v2
run: sudo apt-get update && sudo apt-get install -y jq

- name: Install yq
uses: mikefarah/yq@v4.40.1

- name: Setup Bats and bats libs
id: setup-bats
uses: bats-core/bats-action@3.0.1
with:
cache: false

- name: Run all tests
shell: bash
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,24 +78,9 @@ jobs:
# This must be done BEFORE semantic-release to include all recent code changes
git pull origin main --ff-only

# Save the original update-checker.sh before semantic-release
UPDATE_CHECKER_BACKUP=$(mktemp)
cp "plugins/auto-updater/scripts/update-checker.sh" "$UPDATE_CHECKER_BACKUP" 2>/dev/null || true

# Run semantic-release to update version files only
npx semantic-release

# Restore update-checker.sh if it was corrupted
if [ -f "$UPDATE_CHECKER_BACKUP" ]; then
# Check if the file has fewer than 50 lines (corrupted)
if [ $(wc -l < "plugins/auto-updater/scripts/update-checker.sh") -lt 50 ]; then
echo "Restoring corrupted update-checker.sh from backup"
cp "$UPDATE_CHECKER_BACKUP" "plugins/auto-updater/scripts/update-checker.sh"
git add "plugins/auto-updater/scripts/update-checker.sh"
fi
rm -f "$UPDATE_CHECKER_BACKUP"
fi

# Check if files were modified (semantic-release updated version files)
if ! git diff --quiet; then
echo "Release changes detected, creating PR..."
Expand Down
Loading