Skip to content

Commit 3c60970

Browse files
committed
Adjustments
1 parent 9d4d6f3 commit 3c60970

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/pull-requests-built-files.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
- name: Checkout repository
4848
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4949
with:
50+
ref: ${{ github.head_ref }}
5051
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
5152

5253
- name: Set up Node.js
@@ -75,11 +76,11 @@ jobs:
7576

7677
- name: Build WordPress
7778
run: npm run build:dev
78-
#
79-
# - name: Configure git user name and email
80-
# run: |
81-
# git config user.name "dependabot[bot]"
82-
# git config user.email dependabot[bot]@users.noreply.github.com
79+
80+
- name: Configure git user name and email
81+
run: |
82+
git config user.name "dependabot[bot]"
83+
git config user.email 49699333+dependabot[bot]@users.noreply.github.com
8384
8485
- name: Ensure version-controlled files are not modified or deleted during building
8586
id: built-file-check
@@ -93,17 +94,11 @@ jobs:
9394
- name: Stage changes
9495
if: ${{ steps.built-file-check.outputs.uncommitted_changes != '' }}
9596
run: git add .
96-
env:
97-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9897

9998
- name: Commit changes
10099
if: ${{ steps.built-file-check.outputs.uncommitted_changes != '' }}
101100
run: git commit -m "Automated commit of built changes. [dependabot skip]"
102-
env:
103-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
104101

105102
- name: Push changes
106103
if: ${{ steps.built-file-check.outputs.uncommitted_changes != '' }}
107-
run: git push HEAD:${{ github.event.pull_request.head.ref }} ${{ github.event.pull_request.head.ref }}
108-
env:
109-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
104+
run: git push

0 commit comments

Comments
 (0)