Skip to content

Commit 0872344

Browse files
authored
Impove generate.yml
1 parent b73f281 commit 0872344

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/generate.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- name: Checkout
14+
- name: Checkout repository
1515
uses: actions/checkout@v4
1616

1717
- name: Install PHP
@@ -26,12 +26,12 @@ jobs:
2626

2727
- name: Generate stubs
2828
run: |
29-
./generate.sh # Generate stubs
29+
./generate.sh
3030
3131
- name: Commit file
3232
run: |
33-
git config --local user.name "GitHub Actions"
34-
git config --local user.email "no-reply@github.com"
35-
git add wordpress-stubs.php
33+
git config --local user.name "${{ github.actor }}"
34+
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
35+
git add -- wordpress-stubs.php
3636
git commit -m "Update WordPress stubs" || exit 0
37-
git push origin ${{ github.ref_name }}
37+
git push origin "${{ github.ref_name }}"

0 commit comments

Comments
 (0)