Skip to content

Commit dd8d3c4

Browse files
committed
Doc changes. Try without custom token.
1 parent 8dabbcb commit dd8d3c4

3 files changed

Lines changed: 20 additions & 30 deletions

File tree

.github/workflows/check-built-files.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Checks for uncommitted changes to built files and pushes changes back.
2-
name: Check built files
1+
# Checks for uncommitted changes to built files in pull requests.
2+
name: Check Built Files (PRs)
33

44
on:
55
# Because all commits happen through SVN and should always be manually reviewed by a committer, this workflow only
66
# runs for pull requests.
77
#
8-
# Other workflows that run on push will detect changes to versioned files and fail.
8+
# Other workflows that run for the push event will detect changes to versioned files and fail.
99
pull_request:
1010
branches:
1111
- trunk
@@ -39,8 +39,8 @@ concurrency:
3939
permissions: {}
4040

4141
jobs:
42-
update-built-files:
43-
name: Update built files
42+
check-for-built-file-changes:
43+
name: Check built files
4444
if: ${{ github.repository == 'desrosj/wordpress-develop' }}
4545
uses: ./.github/workflows/reusable-check-built-files.yml
4646

.github/workflows/commit-built-file-changes.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Commits missed changes to built files back to pull request branches.
1+
# Commits all missed changes to built files back to pull request branches.
22
name: Commit Built File Changes (PRs)
33

44
on:
@@ -24,19 +24,13 @@ jobs:
2424
# read-only access.
2525
#
2626
# Performs the following steps:
27+
# - Attempts to download the artifact containing the PR diff.
28+
# - Checks for the existence of an artifact.
29+
# - Unzips the artifact.
2730
# - Generates a token for authenticating with the GitHub App.
2831
# - Checks out the repository.
29-
# - Sets up Node.js.
30-
# - Configures caching for Composer.
31-
# - Installs Composer dependencies.
32-
# - Logs general debug information about the runner.
33-
# - Installs npm dependencies.
34-
# - Builds CSS file using SASS.
35-
# - Builds Emoji files.
36-
# - Builds bundled Root Certificate files.
37-
# - Builds WordPress.
38-
# - Checks for changes to versioned files.
39-
# - Displays the result of git diff for debugging purposes.
32+
# - Applies the patch file.
33+
# - Displays the result of git diff.
4034
# - Configures the Git author.
4135
# - Stages changes.
4236
# - Commits changes.
@@ -131,9 +125,6 @@ jobs:
131125
132126
rm -f private-key.pem
133127
134-
- name: list directory
135-
run: ls -la
136-
137128
- name: Checkout repository
138129
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
139130
if: ${{ steps.artifact-check.outputs.exists == 'true' }}
@@ -142,10 +133,6 @@ jobs:
142133
ref: ${{ github.event.workflow_run.head_branch }}
143134
path: 'pr-repo'
144135
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
145-
token: ${{ env.ACCESS_TOKEN }}
146-
147-
- name: list directory
148-
run: ls -la
149136

150137
- name: Apply patch
151138
if: ${{ steps.artifact-check.outputs.exists == 'true' }}

.github/workflows/reusable-check-built-files.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
name: Lint GitHub Actions workflows
1+
##
2+
# A reusable workflow that checks for uncommitted changes to built files in pull requests.
3+
##
4+
name: Check Built Files (PRs)
5+
26
on:
37
workflow_call:
48

@@ -7,8 +11,8 @@ permissions: {}
711
jobs:
812
# Checks a PR for uncommitted changes to built files.
913
#
10-
# When changes are detected, the patch and PR number are stored as an artifact for the Commit Built File Changes
11-
# workflow to commit and push the changes back for testing.
14+
# When changes are detected, the patch is stored as an artifact. The Commit Built File Changes workflow runs on
15+
# workflow_run, commits, and push the changes back to the pull request for testing purposes.
1216
#
1317
# Performs the following steps:
1418
# - Checks out the repository.
@@ -100,9 +104,8 @@ jobs:
100104
if: ${{ steps.built-file-check.outputs.uncommitted_changes == 'true' }}
101105
run: git diff > ./changes.diff
102106

103-
# Uploads the PR number and diff as an artifact for the Commit Built File Changes workflow to download and then
104-
# commit back for testing.
105-
- name: Upload PR data as artifact
107+
# Uploads the diff file as an artifact.
108+
- name: Upload diff file as artifact
106109
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
107110
if: ${{ steps.built-file-check.outputs.uncommitted_changes == 'true' }}
108111
with:

0 commit comments

Comments
 (0)