Path '/home/runner/svn-slug-name/tags/refs/heads' is not a directory
running for the first time / using workflow_dispatch (if that makes a difference)
output
SVN was successfully installed.
ℹ︎ SLUG is debug-console-php
ℹ︎ VERSION is refs/heads/master
ℹ︎ ASSETS_DIR is .wordpress-org
➤ Checking out .org repository...
A /home/runner/svn-debug-console-php/assets
A /home/runner/svn-debug-console-php/tags
A /home/runner/svn-debug-console-php/trunk
Updating 'assets':
A assets/banner-1544x500.png
A assets/banner-772x250.png
A assets/icon-128x128.png
Updated to revision 3415759.
Updating 'trunk':
A trunk/src
A trunk/src/Settings
A trunk/vendor
...OMITTING MANY LINES....
Updated to revision 3415759.
Updating 'tags':
A tags/3.5
Updated to revision 3415759.
➤ Copying files...
ℹ︎ Using .gitattributes
fatal: pathspec 'LICENSE
README.md
...OMITTING MANY LINES....
Error: Process completed with exit code 128.
not familiar enough with svn to know where the error originates
ℹ︎ VERSION is refs/heads/master. seems a bit suspect vs. "3.5" or "v3.5"
google says:
Examine the full error message: The exit code 128 is often accompanied by more specific error messages in the console output. Analyze these messages for clues about the root cause.
ℹ︎ VERSION is refs/heads/master
seems suspect script being ran via manual dispatch
edit... indeed.. I updated my "prep" script to be a "build" script and now using BUILD_DIR var...
svn: E155010: Path '/home/runner/svn-debug-console-php/tags/refs/heads' is not a directory
perhaps the script could pull and use the most recently created tag if running via manual_dispatch...
and if triggered via manual_dispatch..... don't bail early, but update said version ?
if [[ -d "tags/$VERSION" ]]; then
echo "ℹ︎ Version $VERSION of plugin $SLUG was already published";
generate_zip
exit
fi
https://docs.github.com/en/actions/reference/workflows-and-actions/variables
GITHUB_REF_TYPE could be utilized
The type of ref that triggered the workflow run. Valid values are "branch" or "tag".
if "branch" exit early and echo not supported... or try to determine the branch via different means
https://gist.github.com/rponte/fdc0724dd984088606b0