mirror of
https://github.com/ivuorinen/actions.git
synced 2026-01-26 11:34:00 +00:00
Compare commits
1 Commits
v2026.01.0
...
v2026.01.0
| Author | SHA1 | Date | |
|---|---|---|---|
| a247b78178 |
16
.github/workflows/new-release.yml
vendored
16
.github/workflows/new-release.yml
vendored
@@ -21,6 +21,8 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@71cf2267d89c5cb81562390fa70a37fa40b1305e # v6-beta
|
||||
with:
|
||||
fetch-depth: 0 # Fetch all history and tags for comparison
|
||||
|
||||
- name: Create daily release
|
||||
id: daily-version
|
||||
@@ -37,6 +39,20 @@ jobs:
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Get the most recent tag
|
||||
PREVIOUS_TAG=$(git tag --sort=-version:refname | head -1)
|
||||
|
||||
# Check if there are any changes since the previous tag
|
||||
if [ -n "$PREVIOUS_TAG" ]; then
|
||||
CHANGES=$(git rev-list "$PREVIOUS_TAG"..HEAD --count)
|
||||
if [ "$CHANGES" -eq 0 ]; then
|
||||
printf '%s\n' "created=false" >> "$GITHUB_OUTPUT"
|
||||
printf '%s\n' "No changes since $PREVIOUS_TAG - skipping release"
|
||||
exit 0
|
||||
fi
|
||||
printf '%s\n' "Found $CHANGES commit(s) since $PREVIOUS_TAG"
|
||||
fi
|
||||
|
||||
# Create release with auto-generated changelog (also creates tag)
|
||||
gh release create "$VERSION" \
|
||||
--title "Release $VERSION" \
|
||||
|
||||
@@ -9,5 +9,6 @@
|
||||
"siblings_only": true
|
||||
},
|
||||
"MD033": false,
|
||||
"MD041": false
|
||||
"MD041": false,
|
||||
"MD060": false
|
||||
}
|
||||
|
||||
1
package-lock.json
generated
1
package-lock.json
generated
@@ -1093,7 +1093,6 @@
|
||||
"integrity": "sha512-esPk+8Qvx/f0bzI7YelUeZp+jCtFOk3KjZ7s9iBQZ6HlymSXoTtWGiIRZP05/9Oy2ehIoIjenVwndxGtxOIJYQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"globby": "15.0.0",
|
||||
"js-yaml": "4.1.1",
|
||||
|
||||
Reference in New Issue
Block a user