-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflows: Sync assets to plugin repo upon change in trunk (#68052)
Sync the `assets/` directory to the plugin svn repo whenever a file in that directory is changed as part of a commit to `trunk` Co-authored-by: ockham <[email protected]> Co-authored-by: sirreal <[email protected]> Co-authored-by: mcsf <[email protected]> Co-authored-by: bph <[email protected]>
- Loading branch information
1 parent
058632b
commit 5e362f5
Showing
5 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Sync Gutenberg plugin assets to WordPress.org plugin repo | ||
|
||
on: | ||
push: | ||
branches: | ||
- trunk | ||
paths: | ||
- assets/** | ||
|
||
jobs: | ||
sync-assets: | ||
name: Sync assets to WordPress.org plugin repo | ||
runs-on: ubuntu-latest | ||
environment: wp.org plugin | ||
env: | ||
PLUGIN_REPO_URL: 'https://plugins.svn.wordpress.org/gutenberg' | ||
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | ||
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | ||
|
||
steps: | ||
- name: Check out Gutenberg assets folder from WP.org plugin repo | ||
run: | | ||
svn checkout "$PLUGIN_REPO_URL/assets" \ | ||
--username "$SVN_USERNAME" --password "$SVN_PASSWORD" | ||
- name: Delete everything | ||
run: find assets -type f -not -path 'assets/.svn/*' -delete | ||
|
||
- name: Checkout assets from current release | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
sparse-checkout: | | ||
assets | ||
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} | ||
path: git | ||
|
||
- name: Copy files from git checkout to svn working copy | ||
run: cp -R git/assets/* assets | ||
|
||
- name: Commit the updated assets | ||
working-directory: ./assets | ||
run: | | ||
svn st | awk '/^?/ {print $2}' | xargs -r svn add | ||
svn st | awk '/^!/ {print $2}' | xargs -r svn rm | ||
svn commit . \ | ||
-m "Sync assets for commit $GITHUB_SHA" \ | ||
--no-auth-cache --non-interactive --username "$SVN_USERNAME" --password "$SVN_PASSWORD" \ | ||
--config-option=servers:global:http-timeout=600 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5e362f5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flaky tests detected in 5e362f5.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.
🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12409695924
📝 Reported issues:
/test/e2e/specs/site-editor/dataviews-list-layout-keyboard.spec.js