mirror of
https://github.com/ivuorinen/actions.git
synced 2026-01-26 11:34:00 +00:00
Compare commits
5 Commits
v2026.01.0
...
v2026.01.2
| Author | SHA1 | Date | |
|---|---|---|---|
| cc842575b9 | |||
|
|
cbfddb2433 | ||
|
|
5664cdbfbf | ||
|
|
e740f9d893 | ||
| a247b78178 |
@@ -17,7 +17,7 @@ runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
|
||||
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
|
||||
with:
|
||||
enable-cache: true
|
||||
|
||||
|
||||
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" \
|
||||
|
||||
23
.github/workflows/version-maintenance.yml
vendored
23
.github/workflows/version-maintenance.yml
vendored
@@ -40,6 +40,29 @@ jobs:
|
||||
printf '%s\n' "major=v$current_year" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
- name: Ensure Major Version Tag Exists
|
||||
id: ensure-tag
|
||||
shell: sh
|
||||
env:
|
||||
MAJOR_VERSION: ${{ steps.version.outputs.major }}
|
||||
run: |
|
||||
set -eu
|
||||
|
||||
git fetch --tags --force
|
||||
|
||||
if git rev-list -n 1 "$MAJOR_VERSION" >/dev/null 2>&1; then
|
||||
echo "Tag $MAJOR_VERSION already exists"
|
||||
printf '%s\n' "created=false" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "Tag $MAJOR_VERSION not found, creating..."
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git tag -a "$MAJOR_VERSION" -m "Major version $MAJOR_VERSION"
|
||||
git push origin "$MAJOR_VERSION"
|
||||
echo "Created and pushed tag $MAJOR_VERSION"
|
||||
printf '%s\n' "created=true" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
- name: Run Action Versioning
|
||||
id: action-versioning
|
||||
uses: ./action-versioning
|
||||
|
||||
@@ -9,5 +9,6 @@
|
||||
"siblings_only": true
|
||||
},
|
||||
"MD033": false,
|
||||
"MD041": false
|
||||
"MD041": false,
|
||||
"MD060": false
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ repos:
|
||||
types: [markdown, python, yaml]
|
||||
files: ^(docs/.*|README\.md|CONTRIBUTING\.md|CHANGELOG\.md|.*\.py|.*\.ya?ml)$
|
||||
- repo: https://github.com/astral-sh/uv-pre-commit
|
||||
rev: 0.9.22
|
||||
rev: 0.9.24
|
||||
hooks:
|
||||
- id: uv-lock
|
||||
- id: uv-sync
|
||||
@@ -55,7 +55,7 @@ repos:
|
||||
- id: yamllint
|
||||
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.14.10
|
||||
rev: v0.14.11
|
||||
hooks:
|
||||
# Run the linter with auto-fix
|
||||
- id: ruff-check
|
||||
|
||||
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