Skip to content

Commit

Permalink
Fix date commits message (#67)
Browse files Browse the repository at this point in the history
* update pre-commits

* fix date in commit message

* remove extra label
  • Loading branch information
ocefpaf authored May 1, 2024
1 parent 83b878b commit aed4845
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit aed4845

Please sign in to comment.