Skip to content

Commit

Permalink
ci: added the update-assets action
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaelahidev committed Dec 8, 2024
1 parent d0a7d2b commit 0300514
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/update-assets/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'Update WordPress.org Blockera plugin assets and readme'
description: 'Updates the WordPress.org plugin repository assets and readme for Blockera'

inputs:
svn-username:
description: 'WordPress.org SVN username'
required: true
svn-password:
description: 'WordPress.org SVN password'
required: true

runs:
using: 'composite'
steps:
- name: Install SVN
shell: bash
run: |
sudo apt-get update
sudo apt-get install subversion
- name: Update WordPress.org assets
uses: 10up/action-wordpress-plugin-asset-update@stable
env:
SVN_PASSWORD: ${{ inputs.svn-password }}
SVN_USERNAME: ${{ inputs.svn-username }}
7 changes: 7 additions & 0 deletions .github/workflows/upload-release-to-plugin-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,10 @@ jobs:
svn import "$VERSION" "$PLUGIN_REPO_URL/tags/$VERSION" -m "Committing version $VERSION" \
--no-auth-cache --non-interactive --username "$SVN_USERNAME" --password "$SVN_PASSWORD" \
--config-option=servers:global:http-timeout=300
update-assets:
name: Update assets/readme
uses: ./.github/update-assets
with:
svn-username: ${{ secrets.SVN_USERNAME }}
svn-password: ${{ secrets.SVN_PASSWORD }}

0 comments on commit 0300514

Please sign in to comment.