Skip to content

Commit 012d6aa

Browse files
authored
chore: fix the release action (#29)
1 parent eed2598 commit 012d6aa

3 files changed

Lines changed: 12 additions & 17 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ jobs:
3434
run: |
3535
LAST_TAG=$(git tag -l | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -n 1)
3636
if [ -z "$LAST_TAG" ]; then
37-
echo "No previous Atomic releases found, will release"
37+
echo "No previous Snacker releases found, will release"
3838
echo "has-changes=true" >> $GITHUB_OUTPUT
3939
else
4040
if [ -n "$(git diff --name-only ${LAST_TAG}..HEAD)" ]; then
41-
echo "Atomic changes found since $LAST_TAG"
41+
echo "Snacker changes found since $LAST_TAG"
4242
echo "has-changes=true" >> $GITHUB_OUTPUT
4343
else
44-
echo "No Atomic changes since $LAST_TAG"
44+
echo "No Snacker changes since $LAST_TAG"
4545
echo "has-changes=false" >> $GITHUB_OUTPUT
4646
fi
4747
fi
@@ -53,7 +53,7 @@ jobs:
5353
run: |
5454
NEXT_VERSION=$(git cliff --config ./cliff.toml --bumped-version)
5555
echo "NEXT_VERSION=$NEXT_VERSION" >> "$GITHUB_OUTPUT"
56-
echo "Next Atomic version will be: $NEXT_VERSION"
56+
echo "Next Snacker version will be: $NEXT_VERSION"
5757
- name: Update CHANGELOG.md
5858
if: steps.check-changes.outputs.has-changes == 'true'
5959
env:
@@ -62,7 +62,7 @@ jobs:
6262
- name: Update README.md version
6363
if: steps.check-changes.outputs.has-changes == 'true'
6464
run: |
65-
sed -i -E 's|https://github.com/space-code/atomic.git", from: "[0-9]+\.[0-9]+\.[0-9]+"|https://github.com/space-code/atomic.git", from: "'"${{ steps.next-version.outputs.NEXT_VERSION }}"'"|g' README.md
65+
sed -i -E 's|https://github.com/space-code/snacker.git", from: "[0-9]+\.[0-9]+\.[0-9]+"|https://github.com/space-code/snacker.git", from: "'"${{ steps.next-version.outputs.NEXT_VERSION }}"'"|g' README.md
6666
echo "Updated README.md with version ${{ steps.next-version.outputs.NEXT_VERSION }}"
6767
- name: Get release notes
6868
id: release-notes
@@ -89,13 +89,13 @@ jobs:
8989
commit_options: "--allow-empty --no-verify"
9090
tagging_message: ${{ steps.next-version.outputs.NEXT_VERSION }}
9191
skip_dirty_check: true
92-
commit_message: "[Release] Atomic ${{ steps.next-version.outputs.NEXT_VERSION }}"
92+
commit_message: "[Release] Snacker ${{ steps.next-version.outputs.NEXT_VERSION }}"
9393
- name: Create GitHub Release
9494
uses: softprops/action-gh-release@v2
9595
if: steps.check-changes.outputs.has-changes == 'true'
9696
with:
9797
draft: false
98-
repository: space-code/atomic
98+
repository: space-code/snacker
9999
name: ${{ steps.next-version.outputs.NEXT_VERSION }}
100100
tag_name: ${{ steps.next-version.outputs.NEXT_VERSION }}
101101
body: ${{ steps.release-notes.outputs.RELEASE_NOTES }}

CHANGELOG.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
#### 1.x Releases
9-
- `1.0.x` Releases - [1.0.1](#101) | [1.0.0](#100)
9+
- `1.0.x` Releases - [1.0.0](#100)
1010

1111
---
12-
13-
14-
## [1.0.1](https://github.com/space-code/snacker/releases/tag/1.0.1)
15-
16-
Released on 2026-01-25. All issues associated with this milestone can be found using this [filter](https://github.com/space-code/snacker/milestones?state=closed&q=1.0.1).
12+
## [Unreleased]
1713

1814
### Documentation
1915
- Update `README.md`
@@ -46,7 +42,7 @@ Released on 2026-01-25. All issues associated with this milestone can be found u
4642
- Contributed by [@dependabot[bot]](https://github.com/dependabot[bot]) in Pull Request [#3](https://github.com/space-code/snacker/pull/3).
4743

4844
### New Contributors
49-
* @renovate[bot] made their first contribution in
45+
* @renovate[bot] made their first contribution in [#28](https://github.com/space-code/snacker/pull/28)
5046
* @dependabot[bot] made their first contribution in [#3](https://github.com/space-code/snacker/pull/3)
5147

5248
## [1.0.0](https://github.com/space-code/snacker/releases/tag/1.0.0)
@@ -59,5 +55,5 @@ Released on 2025-03-24. All issues associated with this milestone can be found u
5955
- Implement `Snacker`
6056
- Contributed by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#1](https://github.com/space-code/snacker/pull/1).
6157

62-
[1.0.1]: https://github.com/space-code/snacker/compare/1.0.0..1.0.1
58+
[unreleased]: https://github.com/space-code/snacker/compare/1.0.0..HEAD
6359

Sources/snacker/Classes/Core/Snacker/Snacker.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,12 @@ public final class Snacker {
5151
inContainerView containerView: UIView,
5252
data: SnackbarData
5353
) -> SnackbarController {
54-
let controller = SnackbarController(
54+
SnackbarController(
5555
contentView: view,
5656
containerView: containerView,
5757
alignment: data.snackbarAlignment,
5858
insets: data.insets
5959
)
60-
return controller
6160
}
6261
}
6362

0 commit comments

Comments
 (0)