From dcb0a0223cefb0e3aec252c4ef3cd6c1024d78d0 Mon Sep 17 00:00:00 2001 From: mxt Date: Sun, 2 Jun 2024 10:12:54 -0500 Subject: [PATCH] include the output redirection inside the dev script --- .github/workflows/build-workflow.yml | 1 - badges/timestamp.txt | 2 +- pyproject.toml | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-workflow.yml b/.github/workflows/build-workflow.yml index b0d1c0c..8cdff27 100644 --- a/.github/workflows/build-workflow.yml +++ b/.github/workflows/build-workflow.yml @@ -92,6 +92,5 @@ jobs: git fetch origin "${GITHUB_HEAD_REF}" git checkout "${GITHUB_HEAD_REF}" pdm badges-only - pdm timestamp > badges.txt git commit -am "Update Badges" git push diff --git a/badges/timestamp.txt b/badges/timestamp.txt index a4564d5..9c9f1c1 100644 --- a/badges/timestamp.txt +++ b/badges/timestamp.txt @@ -1 +1 @@ -Sun Jun 2 15:05:49 UTC 2024 +Sun Jun 2 15:12:18 UTC 2024 diff --git a/pyproject.toml b/pyproject.toml index 66201ed..3ed333b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ regression = "tox -e 'py38,py39,py310,py311,py312' --parallel" fmt = "black {args:src/}" lint = "flake8 {args:src/}" typing = "mypy {args:src/}" -timestamp = {cmd="date -u"} +badges-timestamp = {shell="date -u > badges/timestamp.txt"} [tool.pdm.scripts.style] composite = [ @@ -71,6 +71,7 @@ composite = [ "genbadge tests -o badges/tests.svg", "genbadge coverage -o badges/coverage.svg", "genbadge flake8 -i reports/flake8/stats.txt -o badges/flake8.svg", + "badges-timestamp" ] [tool.pdm.scripts.badges]