Skip to content

Commit 9e16319

Browse files
committed
ci(workflow): try use github context
1 parent 9f6f780 commit 9e16319

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/clone.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
sed -i "s/\"version\": \".*\"/\"version\": \"1.0.0\"/" package.json
2929
- name: Replace name and email
3030
run: |
31-
sed -i "s/\"author\": \".*\"/\"author\": \"${{ github.event.client_payload.sender }}\"/" package.json
31+
sed -i "s/\"author\": \".*\"/\"author\": \"${{ github.actor }}\"/" package.json
3232
- name: Replace repository
3333
run: |
34-
sed -i "s/\"repository\": \".*\"/\"repository\": \"${{ github.event.client_payload.repository }}\"/" package.json
34+
sed -i "s/\"repository\": \".*\"/\"repository\": \"${{ github.repositoryUrl }}\"/" package.json
3535
3636
- name: Commit changes
3737
run: |

0 commit comments

Comments
 (0)