Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svn: command not found #158

Closed
Surbma opened this issue Dec 28, 2024 · 4 comments · Fixed by #160
Closed

svn: command not found #158

Surbma opened this issue Dec 28, 2024 · 4 comments · Fixed by #160
Assignees
Milestone

Comments

@Surbma
Copy link

Surbma commented Dec 28, 2024

Hi,

I was using the master branch previously, but wanted to use the latest version of this action. So I have changed the configuration to use the stable instead of the master branch.

Now I'm getting this error every time, when the action is running:
/home/runner/work/_actions/10up/action-wordpress-plugin-deploy/stable/deploy.sh: line 63: svn: command not found

I have tried everything, but it seems, it is not working anymore. Can someone help me to find out, where is the problem?

This is the repo, where I need help:
https://github.com/Surbma/surbma-salesautopilot-shortcode

@michael-sumner
Copy link
Member

@Surbma see #157 (comment)

You will need to install the subversion command within your .yml file. This is because ubuntu-latest no longer has subversion shipped with it.

I have also added a fix to my plugin repo here if you wish to copy it. Note: that you will need to remove your previous tag, add the subversion command, and re-run the action again so that the build release will know to use the subversion command:
scoredetect/timestamps@78440eb

bonny added a commit to bonny/WordPress-Simple-History that referenced this issue Dec 30, 2024
This is because ubuntu-latest no longer ships with subversion. 

Solution found here:
10up/action-wordpress-plugin-deploy#158
@Surbma
Copy link
Author

Surbma commented Dec 30, 2024

Thank you for all the help, I was able to fix it.

This is the final code after a deep investigation:

name: Deploy new release to WordPress.org
on:
  push:
    tags:
    - "*"
jobs:
  tag:
    name: New tag is pushed
    runs-on: ubuntu-latest
    steps:
    - name: Install Subversion
      run: sudo apt-get update && sudo apt-get install -y subversion
    - name: Checkout code
      uses: actions/checkout@v3
    - name: WordPress Plugin Deploy
      uses: 10up/action-wordpress-plugin-deploy@stable
      env:
        SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
        SVN_USERNAME: ${{ secrets.SVN_USERNAME }}

@Surbma Surbma closed this as completed Dec 30, 2024
@michael-sumner
Copy link
Member

Glad to help!

Abraham-Flutterwave added a commit to Flutterwave/Woocommerce-v2 that referenced this issue Jan 9, 2025
SVN no longer ships with ubuntu as a result svn needs to be installed before the 10up action can be used. more information [here](10up/action-wordpress-plugin-deploy#158 (comment))
@kirtangajjar
Copy link
Member

Reopening the issue to address it more robustly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants