diff --git a/.github/workflows/metrics.yml b/.github/workflows/metrics.yml index 71092cf..1ba188a 100644 --- a/.github/workflows/metrics.yml +++ b/.github/workflows/metrics.yml @@ -46,24 +46,26 @@ jobs: && python gts_regional_metrics.py && python gts_atn_metrics.py + - name: Get current date + run: echo "NOW=$(date -u)" >> ${GITHUB_ENV} + - name: Create Pull Request if: github.ref == 'refs/heads/main' id: cpr uses: peter-evans/create-pull-request@v6 with: token: ${{ secrets.GITHUB_TOKEN }} - commit-message: "Latest data: $(date -u)" + commit-message: "Latest data: ${{ env.NOW }}" branch: update-webpage delete-branch: true title: "[metrics-ci] webpage auto-update" body: | Metrics Webpage auto-udpate. labels: | - New: Pull Request Bot - name: Check outputs if: ${{ steps.cpr.outputs.pull-request-number }} run: | echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" - echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" \ No newline at end of file + echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 95e639c..ebe0e75 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,7 +29,7 @@ repos: - id: add-trailing-comma - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.7 + rev: v0.4.2 hooks: - id: ruff args: ["--fix", "--show-fixes"]