File tree Expand file tree Collapse file tree 1 file changed +0
-32
lines changed
Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments