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
2 changes: 1 addition & 1 deletion .github/future-release-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ Report issues or suggest features on our [GitHub Issues page](https://github.com

### Technical Changelog

For a complete list of changes, see the [Changelog](https://github.com/berrybytes/awsctl/blob/develop/CHANGELOG.md).
For a complete list of changes, see the [Changelog](https://github.com/berrybytes/awsctl/blob/main/CHANGELOG.md).

Thank you for using `awsctl`!
2 changes: 1 addition & 1 deletion .github/initial-release-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ This is our first release, and we’d love your input! Report issues or suggest

### Technical Changelog

For a complete list of changes, see the [Changelog](https://github.com/berrybytes/awsctl/blob/develop/CHANGELOG.md).
For a complete list of changes, see the [Changelog](https://github.com/berrybytes/awsctl/blob/main/CHANGELOG.md).

Thank you for using `awsctl`!
10 changes: 7 additions & 3 deletions .github/workflows/releaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@ jobs:
- name: Get current and previous tags
id: tags
run: |
CURRENT_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
# CURRENT_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
CURRENT_TAG=$(git tag --sort=-creatordate | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1 || echo "")
if [ -n "$CURRENT_TAG" ]; then
PREV_TAG=$(git describe --tags --abbrev=0 "$CURRENT_TAG"^ 2>/dev/null || echo "")
# PREV_TAG=$(git describe --tags --abbrev=0 "$CURRENT_TAG"^ 2>/dev/null || echo "")
PREV_TAG=$(git tag --sort=-creatordate | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | sed -n 2p || echo "")

else
PREV_TAG=""
fi
Expand All @@ -65,7 +68,8 @@ jobs:
echo "skip=false" >> $GITHUB_OUTPUT
exit 0
fi
COMMIT_COUNT=$(git rev-list --count "$CURRENT_TAG..HEAD" --no-merges)
git fetch origin main --tags
COMMIT_COUNT=$(git rev-list --count "$CURRENT_TAG..origin/main" --no-merges)
if [ "$COMMIT_COUNT" -eq 0 ]; then
echo "No new commits since $CURRENT_TAG. Skipping release."
echo "skip=true" >> $GITHUB_OUTPUT
Expand Down
Loading