Skip to content

Commit

Permalink
delete old version for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
AcarFurkan committed May 15, 2024
1 parent ceac43a commit 20817d9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .github/scripts/generate_changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ ACCESS_TOKEN="$ACCESS_TOKEN"
CHANGELOG_FILE="../../CHANGELOG.md" # Changelog dosyanızın yolu
PUBSPEC_FILE="../../pubspec.yaml" # pubspec.yaml dosyanızın yolu

if [ -z "$ACCESS_TOKEN" ]; then
echo "The ACCESS_TOKEN is not set in generate_changelog.sh"
exit 1
fi

# Changelog dosyasından ilk PR numarasını bul
last_pr_number=$(grep -o '#[0-9]\+' "$CHANGELOG_FILE" | head -1 | tr -d '#')
echo "First PR number in changelog: $last_pr_number"
Expand Down
22 changes: 16 additions & 6 deletions .github/scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ REPO_OWNER="AcarFurkan"
REPO_NAME="overlay_search"
ACCESS_TOKEN="$ACCESS_TOKEN"

if [ -z "$ACCESS_TOKEN" ]; then
echo "The ACCESS_TOKEN is not set in publish.sh"
exit 1
fi

# Find the latest release number from the CHANGELOG.md file
latest_release=$(grep "^##" $CHANGELOG_PATH | head -1 | awk '{print $2}')

Expand Down Expand Up @@ -54,13 +59,18 @@ else
if [[ $confirm == "Y" || $confirm == "y" ]]; then
if bash ./generate_changelog.sh; then
echo "CHANGELOG was successfully generated."
read -p "Do you want to proceed with committing and publishing the CHANGELOG? (y/n): " user_response

if [[ "$user_response" == [yY] ]]; then
git add $CHANGELOG_PATH
git commit -m "CHANGELOG.md generated"
git push origin main

git add $CHANGELOG_PATH
git commit -m "CHANGELOG.md generated"
git push origin main

# Run the publish.sh script again
bash ./publish.sh
# Run the publish.sh script again
bash ./publish.sh
else
echo "Committing and publishing were skipped."
fi

else
echo "Failed to generate CHANGELOG."
Expand Down
12 changes: 2 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
## 0.3.6
- Feature: Add Changelog generator from last PR's. [#9](https://github.com/AcarFurkan/overlay_search/pull/9)
- Fixes:
- [#8](https://github.com/AcarFurkan/overlay_search/issues/8) Feature: changelog generator
- Fix: search list item overflow . [#7](https://github.com/AcarFurkan/overlay_search/pull/7)
- Fixes:
- [#6](https://github.com/AcarFurkan/overlay_search/issues/6) Search result item text overflow
- fix: Update search_text_field.dart. [#1](https://github.com/AcarFurkan/overlay_search/pull/1)
## 0.3.3

* add top bar widget
* add top bar widget

## 0.3.2

* add not found text style property
* add not found text style property

## 0.3.1

Expand Down

0 comments on commit 20817d9

Please sign in to comment.