Skip to content

Commit 9260bd1

Browse files
committed
fix: remove the auto gen date
1 parent 152ddbd commit 9260bd1

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

.github/workflows/ci_pr.yml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -28,38 +28,6 @@ jobs:
2828
- name: Lint YAML files
2929
run: "yamllint -f github -d '{extends: default, rules: {line-length: disable}}' _data/guides.yml"
3030

31-
# Auto-generate date job to update _config.yml
32-
auto-gen-date:
33-
name: Update ci_last_modified_date
34-
runs-on: ubuntu-latest
35-
permissions:
36-
contents: write
37-
steps:
38-
- name: Checkout
39-
uses: actions/checkout@v5
40-
with:
41-
ref: ${{ github.head_ref }}
42-
persist-credentials: true
43-
fetch-depth: 0
44-
45-
- name: Set date
46-
id: set_date
47-
run: |
48-
date_value=$(date +'%Y-%m-%d')
49-
echo "date_yyyy_mm_dd=$date_value" >> $GITHUB_ENV
50-
echo "date=$date_value" >> $GITHUB_OUTPUT
51-
52-
- name: Update _config.yml
53-
uses: mikefarah/yq@master
54-
with:
55-
cmd: yq -i '.ci_last_modified_date = "${{ steps.set_date.outputs.date }}"' _config.yml
56-
57-
- name: Commit and Push
58-
uses: stefanzweifel/git-auto-commit-action@v7
59-
with:
60-
commit_message: "ci: Auto-update date to ${{ steps.set_date.outputs.date }} [skip ci]"
61-
file_pattern: "_config.yml"
62-
6331
sort-yaml-by-title:
6432
name: Sort YAML files by title
6533
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)