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
12 changes: 11 additions & 1 deletion .github/workflows/update-python-dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,17 @@ jobs:
- name: ⏳ Wait for prek hooks
wait: install-hooks
- name: 📑 Stage dependency changes
run: git add --all
run: |
set -euo pipefail
while read -r lock; do
# Nab stamps created-at on every run; a lock that differs only there carries no dependency change.
real=$(git diff -U0 --no-color -- "$lock" | grep -cvE '^(\+\+\+|---|@@|diff |index )|^[-+]created-at = |^ ' || true)
if [[ "$real" == 0 ]]; then
git checkout -- "$lock"
echo "Lock change dropped: only created-at moved in $lock"
fi
done < <(git diff --name-only -- '*pylock*.toml')
git add --all
- id: hooks
name: 🧹 Run repository hooks
continue-on-error: true
Expand Down
2 changes: 2 additions & 0 deletions changelog.d/+timestamp-only-locks.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Maintenance pull requests are no longer opened when a refreshed Nab lock differs from the committed one only in its
`created-at` timestamp.
8 changes: 8 additions & 0 deletions github_workflows.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Metadata-Version: 2.4
Name: github-workflows
Version: 0.0.0
Summary: Shared release actions for tox-dev repositories
License-Expression: MIT
Requires-Python: >=3.15
License-File: LICENSE
Dynamic: license-file
8 changes: 8 additions & 0 deletions github_workflows.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
LICENSE
README.md
pyproject.toml
github_workflows.egg-info/PKG-INFO
github_workflows.egg-info/SOURCES.txt
github_workflows.egg-info/dependency_links.txt
github_workflows.egg-info/top_level.txt
tests/test_conftest.py
Empty file.
Empty file.
11 changes: 11 additions & 0 deletions refresh-release-lock/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,17 @@ runs:
else
echo 'Secondary lock skipped: additional-lock input is empty'
fi
if [[ "$MODE" != check ]]; then
for lock in "${paths[@]}"; do
git diff --quiet -- "$lock" && continue
# Nab stamps created-at on every run; a lock that differs only there carries no dependency change.
real=$(git diff -U0 --no-color -- "$lock" | grep -cvE '^(\+\+\+|---|@@|diff |index )|^[-+]created-at = |^ ' || true)
if [[ "$real" == 0 ]]; then
git checkout -- "$lock"
echo "Lock change dropped: only created-at moved in $lock"
fi
done
fi
if [[ "$MODE" == check ]]; then
if ! git diff --exit-code -- "${paths[@]}"; then
echo "::error::regenerated locks differ from the checkout: ${paths[*]}" >&2
Expand Down