diff --git a/.github/update-assets/action.yml b/.github/update-assets/action.yml new file mode 100644 index 000000000..530f45bd7 --- /dev/null +++ b/.github/update-assets/action.yml @@ -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 }} diff --git a/.github/workflows/upload-release-to-plugin-repo.yml b/.github/workflows/upload-release-to-plugin-repo.yml index 9f28fad76..ef089f1be 100644 --- a/.github/workflows/upload-release-to-plugin-repo.yml +++ b/.github/workflows/upload-release-to-plugin-repo.yml @@ -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 }}