瀏覽代碼

fix: this allows proper running of the docs update button (#901)

* fix: this allows proper running of the docs update button

* single quotes
Jacob Bolda 5 年之前
父節點
當前提交
e274ecb77b
共有 1 個文件被更改,包括 11 次插入2 次删除
  1. 11 2
      .github/workflows/update-docs.yml

+ 11 - 2
.github/workflows/update-docs.yml

@@ -2,6 +2,15 @@ name: update-docs
 
 on:
   workflow_dispatch:
+    inputs:
+      gitName:
+        description: 'git name for PR'
+        required: false
+        default: 'tauri-bot'
+      gitEmail:
+        description: 'git email for PR'
+        required: false
+        default: 'tauri-bot@tauri.studio'
 
 jobs:
   update-docs:
@@ -33,8 +42,8 @@ jobs:
           cratesToProcess: "tauri,tauri_api,tauri_utils"
       - name: git config
         run: |
-          git config --global user.name "${{ github.event.pusher.name }}"
-          git config --global user.email "${{ github.event.pusher.email }}"
+          git config --global user.name "${{ github.event.inputs.gitName }}"
+          git config --global user.email "${{ github.event.inputs.gitEmail }}"
       - name: create pull request for updated docs
         uses: tauri-apps/create-pull-request@v2.8.0
         with: