Skip to content

Commit 9eb0e5f

Browse files
ci: disable readme-sync action
1 parent 7bde64b commit 9eb0e5f

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,31 @@ permissions:
1010
contents: write
1111
pull-requests: write
1212

13+
# TODO: this conflicts with format.yml
1314
jobs:
14-
sync-readme:
15-
name: sync readme codes
16-
runs-on: ubuntu-latest
17-
timeout-minutes: 5
18-
steps:
19-
- uses: actions/checkout@v4
20-
- name: run substitution
21-
run: |
22-
vimcmd="/default-config:start/+1,/default-config:end/-1y a |\
23-
e README.md |\
24-
/default-config:start/+2,/default-config:end/-2d |\
25-
/default-config:start/+1put a |\
26-
wq"; vim lua/rest-nvim/config/default.lua -c "$vimcmd"
27-
- name: Commit changes
28-
uses: stefanzweifel/git-auto-commit-action@v5
29-
with:
30-
commit_message: "docs: update README default config section"
31-
branch: ${{ github.ref }}
15+
# sync-readme:
16+
# name: sync readme codes
17+
# runs-on: ubuntu-latest
18+
# timeout-minutes: 5
19+
# steps:
20+
# - uses: actions/checkout@v4
21+
# - name: run substitution
22+
# run: |
23+
# vimcmd="/default-config:start/+1,/default-config:end/-1y a |\
24+
# e README.md |\
25+
# /default-config:start/+2,/default-config:end/-2d |\
26+
# /default-config:start/+1put a |\
27+
# wq"; vim lua/rest-nvim/config/default.lua -c "$vimcmd"
28+
# - name: Commit changes
29+
# uses: stefanzweifel/git-auto-commit-action@v5
30+
# with:
31+
# commit_message: "docs: update README default config section"
32+
# branch: ${{ github.ref }}
3233

3334
release:
3435
name: release
3536
runs-on: ubuntu-latest
36-
needs: [sync-readme]
37+
# needs: [sync-readme]
3738
steps:
3839
- uses: googleapis/release-please-action@v4
3940
with:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ local default_config = {
136136
curl = {
137137
---Statistics to be shown, takes cURL's `--write-out` flag variables
138138
---See `man curl` for `--write-out` flag
139-
---@type table<string,RestStatisticsStyle>
139+
---@type RestStatisticsStyle[]
140140
statistics = {
141-
time_total = { winbar = "take", title = "Time taken" },
142-
size_download = { winbar = "size", title = "Download size" },
141+
{ id = "time_total", winbar = "take", title = "Time taken" },
142+
{ id = "size_download", winbar = "size", title = "Download size" },
143143
},
144144
},
145145
},

0 commit comments

Comments
 (0)