@@ -29,18 +29,33 @@ jobs:
2929 # - Builds Emoji files.
3030 # - Builds bundled Root Certificate files.
3131 # - Builds WordPress.
32+ <<<<<<< HEAD
3233 # - Configures the Git author.
3334 # - Checks for changes to versioned files.
35+ =======
36+ # - Checks for changes to versioned files.
37+ # - Displays the result of git diff for debugging purposes.
38+ # - Configures the Git author.
39+ >>>>>>> upstream/trunk
3440 # - Stages changes.
3541 # - Commits changes.
3642 # - Pushes changes.
3743 update-built-files :
3844 name : Check and update built files
3945 runs-on : ubuntu-24.04
46+ <<<<<<< HEAD
4047 permissions :
4148 contents : write
4249 # This prevents a second run after changes are committed back because Dependabot always rebases updates onto trunk.
4350 if : ${{ github.actor != 'dependabot[bot]' || github.event.commits < 2 }}
51+ =======
52+ # This prevents an unnecessary second run after changes are committed back because Dependabot always rebases
53+ # updates and force pushes.
54+ if : ${{ github.actor != 'dependabot[bot]' || github.event.commits < 2 }}
55+ timeout-minutes : 10
56+ permissions :
57+ contents : write
58+ >>>>>>> upstream/trunk
4459 steps :
4560 - name : Generate Installation Token
4661 id : generate_token
5671 private_key = open("private-key.pem", "r").read()
5772 payload = {
5873 "iat": int(time.time()),
74+ <<<<<<< HEAD
5975 " exp " : int(time.time()) + 60, # 1-minute expiration
76+ =======
77+ " exp " : int(time.time()) + 600, # 10-minute expiration
78+ >>>>>>> upstream/trunk
6079 " iss " : $GH_APP_ID
6180 }
6281 print(jwt.encode(payload, private_key, algorithm="RS256"))
@@ -127,11 +146,6 @@ jobs:
127146 - name : Build WordPress
128147 run : npm run build:dev
129148
130- - name : Configure git user name and email
131- run : |
132- git config user.name "dependabot[bot]"
133- git config user.email 49699333+dependabot[bot]@users.noreply.github.com
134-
135149 - name : Check for changes to versioned files
136150 id : built-file-check
137151 run : |
@@ -142,8 +156,15 @@ jobs:
142156 fi
143157
144158 - name : Display changes to versioned files
159+ if : ${{ steps.built-file-check.outputs.uncommitted_changes == 'true' }}
145160 run : git diff
146161
162+ - name : Configure git user name and email
163+ if : ${{ steps.built-file-check.outputs.uncommitted_changes == 'true' }}
164+ run : |
165+ git config user.name "dependabot[bot]"
166+ git config user.email 49699333+dependabot[bot]@users.noreply.github.com
167+
147168 - name : Stage changes
148169 if : ${{ steps.built-file-check.outputs.uncommitted_changes == 'true' }}
149170 run : git add .
0 commit comments