Skip to content

Commit

Permalink
fix: git config
Browse files Browse the repository at this point in the history
Signed-off-by: Liu Bowen <[email protected]>
  • Loading branch information
lbwa committed Aug 2, 2021
1 parent 92acabc commit 8be8db4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/sync-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ jobs:
node-version: 16.x

# Retrieve event payload
# https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#fromjson
# https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#tojson
- name: Retrieve the `client_payload` value from repository_dispatch event
run: |
echo "Event payload: ${{ fromJSON(github.event.client_payload) }}"
echo "Event payload: ${{ toJson(github.event.client_payload) }}"
- name: Generate local file
uses: ./
with:
# token field is optional
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
out-dir: 'docs'
# https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#fromjson
client-payload: ${{ fromJSON(github.event.client_payload) }}
# https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#tojson
client-payload: ${{toJson(github.event.client_payload)}}
Loading

0 comments on commit 8be8db4

Please sign in to comment.