aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-05-01 12:22:05 -0700
committerMichael Lingelbach <m.j.lbach@gmail.com>2021-05-01 12:22:05 -0700
commit283d31142dbef2a00d384e97f5d93f4048d535d9 (patch)
tree1e4ba8dd0fa28e295e71e80f5bc0efa51c361de0 /.github/workflows
parentFix docgen github action (diff)
downloadnvim-lspconfig-283d31142dbef2a00d384e97f5d93f4048d535d9.tar
nvim-lspconfig-283d31142dbef2a00d384e97f5d93f4048d535d9.tar.gz
nvim-lspconfig-283d31142dbef2a00d384e97f5d93f4048d535d9.tar.bz2
nvim-lspconfig-283d31142dbef2a00d384e97f5d93f4048d535d9.tar.lz
nvim-lspconfig-283d31142dbef2a00d384e97f5d93f4048d535d9.tar.xz
nvim-lspconfig-283d31142dbef2a00d384e97f5d93f4048d535d9.tar.zst
nvim-lspconfig-283d31142dbef2a00d384e97f5d93f4048d535d9.zip
docgen: try to fix docgen authentication issues
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/docgen.yml13
1 files changed, 4 insertions, 9 deletions
diff --git a/.github/workflows/docgen.yml b/.github/workflows/docgen.yml
index fc5340ce..1818503e 100644
--- a/.github/workflows/docgen.yml
+++ b/.github/workflows/docgen.yml
@@ -10,12 +10,9 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- with:
- persist-credentials: false
- fetch-depth: 0
- run: date +%F > todays-date
- name: Restore cache for today's nightly.
- uses: actions/cache@v1.0.0
+ uses: actions/cache@v2
with:
path: _neovim
key: ${{ runner.os }}-nightly-${{ hashFiles('todays-date') }}
@@ -26,14 +23,12 @@ jobs:
scripts/docgen.sh
- name: Commit changes
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_MSG: |
[docgen] Update CONFIG.md
skip-checks: true
run: |
- git config user.email "actions@github"
- git config user.name "Github Actions"
- git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
+ git config user.name github-actions
+ git config user.email github-actions@github.com
git add CONFIG.md
# Only commit and push if we have changes
- git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push origin HEAD:${GITHUB_REF})
+ git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push)