Comments (10)
Hi there - you need a first step of - uses: actions/checkout@v4
to check out the GH repo into your working directory or else it is indeed not a Git repository yet :)
from action-wordpress-plugin-deploy.
Thanks, but that just changed the error. I trid both your suggestion - uses: actions/checkout@v4
as well as the one used in the samples - uses: actions/checkout@master
but both create an error svn: E155010: Path '/home/runner/svn-vern-responsive-video/tags/refs/heads' is not a directory
.
Full log:
2024-02-14T22:35:52.5994017Z Requested labels: ubuntu-latest
2024-02-14T22:35:52.5994229Z Job defined at: clubside/vern-responsive-video/.github/workflows/wordpress-plugin-svn-deploy.yml@refs/heads/main
2024-02-14T22:35:52.5994356Z Waiting for a runner to pick up this job...
2024-02-14T22:35:52.9787508Z Job is waiting for a hosted runner to come online.
2024-02-14T22:35:56.3284813Z Job is about to start running on the hosted runner: GitHub Actions 5 (hosted)
2024-02-14T22:35:58.0332099Z Current runner version: '2.313.0'
2024-02-14T22:35:58.0356168Z ##[group]Operating System
2024-02-14T22:35:58.0356826Z Ubuntu
2024-02-14T22:35:58.0357183Z 22.04.3
2024-02-14T22:35:58.0357558Z LTS
2024-02-14T22:35:58.0357892Z ##[endgroup]
2024-02-14T22:35:58.0358296Z ##[group]Runner Image
2024-02-14T22:35:58.0358830Z Image: ubuntu-22.04
2024-02-14T22:35:58.0359233Z Version: 20240212.1.0
2024-02-14T22:35:58.0360207Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240212.1/images/ubuntu/Ubuntu2204-Readme.md
2024-02-14T22:35:58.0361742Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240212.1
2024-02-14T22:35:58.0362622Z ##[endgroup]
2024-02-14T22:35:58.0363100Z ##[group]Runner Image Provisioner
2024-02-14T22:35:58.0363674Z 2.0.341.1
2024-02-14T22:35:58.0364029Z ##[endgroup]
2024-02-14T22:35:58.0365069Z ##[group]GITHUB_TOKEN Permissions
2024-02-14T22:35:58.0366660Z Contents: read
2024-02-14T22:35:58.0367096Z Metadata: read
2024-02-14T22:35:58.0367795Z Packages: read
2024-02-14T22:35:58.0368328Z ##[endgroup]
2024-02-14T22:35:58.0371339Z Secret source: Actions
2024-02-14T22:35:58.0371894Z Prepare workflow directory
2024-02-14T22:35:58.0994442Z Prepare all required actions
2024-02-14T22:35:58.1154504Z Getting action download info
2024-02-14T22:35:58.3044071Z Download action repository 'actions/checkout@v4' (SHA:b4ffde65f46336ab88eb53be808477a3936bae11)
2024-02-14T22:35:58.4203261Z Download action repository '10up/action-wordpress-plugin-deploy@stable' (SHA:abb939a0d0bfd01063e8d1933833209201557381)
2024-02-14T22:35:58.7794895Z Complete job name: deploy
2024-02-14T22:35:58.8688293Z ##[group]Run actions/checkout@v4
2024-02-14T22:35:58.8688952Z with:
2024-02-14T22:35:58.8689486Z repository: ***/vern-responsive-video
2024-02-14T22:35:58.8690326Z token: ***
2024-02-14T22:35:58.8690709Z ssh-strict: true
2024-02-14T22:35:58.8691151Z persist-credentials: true
2024-02-14T22:35:58.8691738Z clean: true
2024-02-14T22:35:58.8692190Z sparse-checkout-cone-mode: true
2024-02-14T22:35:58.8692730Z fetch-depth: 1
2024-02-14T22:35:58.8693164Z fetch-tags: false
2024-02-14T22:35:58.8693599Z show-progress: true
2024-02-14T22:35:58.8694011Z lfs: false
2024-02-14T22:35:58.8694470Z submodules: false
2024-02-14T22:35:58.8694896Z set-safe-directory: true
2024-02-14T22:35:58.8695320Z ##[endgroup]
2024-02-14T22:35:59.1351305Z Syncing repository: ***/vern-responsive-video
2024-02-14T22:35:59.1353327Z ##[group]Getting Git version info
2024-02-14T22:35:59.1354636Z Working directory is '/home/runner/work/vern-responsive-video/vern-responsive-video'
2024-02-14T22:35:59.1356038Z [command]/usr/bin/git version
2024-02-14T22:35:59.1435480Z git version 2.43.0
2024-02-14T22:35:59.1462480Z ##[endgroup]
2024-02-14T22:35:59.1479591Z Temporarily overriding HOME='/home/runner/work/_temp/7114d931-99a1-4c96-bd76-81a856d69791' before making global git config changes
2024-02-14T22:35:59.1481875Z Adding repository directory to the temporary git global config as a safe directory
2024-02-14T22:35:59.1484218Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/vern-responsive-video/vern-responsive-video
2024-02-14T22:35:59.1522862Z Deleting the contents of '/home/runner/work/vern-responsive-video/vern-responsive-video'
2024-02-14T22:35:59.1534737Z ##[group]Initializing the repository
2024-02-14T22:35:59.1536998Z [command]/usr/bin/git init /home/runner/work/vern-responsive-video/vern-responsive-video
2024-02-14T22:35:59.1619199Z hint: Using 'master' as the name for the initial branch. This default branch name
2024-02-14T22:35:59.1620919Z hint: is subject to change. To configure the initial branch name to use in all
2024-02-14T22:35:59.1622600Z hint: of your new repositories, which will suppress this warning, call:
2024-02-14T22:35:59.1623691Z hint:
2024-02-14T22:35:59.1624662Z hint: git config --global init.defaultBranch <name>
2024-02-14T22:35:59.1625562Z hint:
2024-02-14T22:35:59.1626401Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2024-02-14T22:35:59.1627955Z hint: 'development'. The just-created branch can be renamed via this command:
2024-02-14T22:35:59.1629044Z hint:
2024-02-14T22:35:59.1629456Z hint: git branch -m <name>
2024-02-14T22:35:59.1630489Z Initialized empty Git repository in /home/runner/work/vern-responsive-video/vern-responsive-video/.git/
2024-02-14T22:35:59.1640779Z [command]/usr/bin/git remote add origin https://github.com/***/vern-responsive-video
2024-02-14T22:35:59.1675696Z ##[endgroup]
2024-02-14T22:35:59.1677103Z ##[group]Disabling automatic garbage collection
2024-02-14T22:35:59.1678820Z [command]/usr/bin/git config --local gc.auto 0
2024-02-14T22:35:59.1709015Z ##[endgroup]
2024-02-14T22:35:59.1710255Z ##[group]Setting up auth
2024-02-14T22:35:59.1714943Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-02-14T22:35:59.1745826Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-02-14T22:35:59.2099436Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-02-14T22:35:59.2129163Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-02-14T22:35:59.2362440Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2024-02-14T22:35:59.2399232Z ##[endgroup]
2024-02-14T22:35:59.2401892Z ##[group]Fetching the repository
2024-02-14T22:35:59.2409839Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +b63b28c484265b3966397b6e25b690715f220848:refs/remotes/origin/main
2024-02-14T22:35:59.5305856Z From https://github.com/***/vern-responsive-video
2024-02-14T22:35:59.5308706Z * [new ref] b63b28c484265b3966397b6e25b690715f220848 -> origin/main
2024-02-14T22:35:59.5335625Z ##[endgroup]
2024-02-14T22:35:59.5336762Z ##[group]Determining the checkout info
2024-02-14T22:35:59.5338303Z ##[endgroup]
2024-02-14T22:35:59.5339410Z ##[group]Checking out the ref
2024-02-14T22:35:59.5343591Z [command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
2024-02-14T22:35:59.5423411Z Switched to a new branch 'main'
2024-02-14T22:35:59.5426280Z branch 'main' set up to track 'origin/main'.
2024-02-14T22:35:59.5432918Z ##[endgroup]
2024-02-14T22:35:59.5469466Z [command]/usr/bin/git log -1 --format='%H'
2024-02-14T22:35:59.5493483Z 'b63b28c484265b3966397b6e25b690715f220848'
2024-02-14T22:35:59.5822048Z ##[group]Run 10up/action-wordpress-plugin-deploy@stable
2024-02-14T22:35:59.5822767Z with:
2024-02-14T22:35:59.5823101Z generate-zip: false
2024-02-14T22:35:59.5823477Z dry-run: false
2024-02-14T22:35:59.5823892Z env:
2024-02-14T22:35:59.5824346Z SVN_PASSWORD: ***
2024-02-14T22:35:59.5825221Z SVN_USERNAME: ***
2024-02-14T22:35:59.5825634Z ##[endgroup]
2024-02-14T22:35:59.6092294Z ##[group]Run /home/runner/work/_actions/10up/action-wordpress-plugin-deploy/stable/deploy.sh
2024-02-14T22:35:59.6093399Z �[36;1m/home/runner/work/_actions/10up/action-wordpress-plugin-deploy/stable/deploy.sh�[0m
2024-02-14T22:35:59.6137423Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2024-02-14T22:35:59.6138150Z env:
2024-02-14T22:35:59.6138642Z SVN_PASSWORD: ***
2024-02-14T22:35:59.6139075Z SVN_USERNAME: ***
2024-02-14T22:35:59.6139551Z INPUT_GENERATE_ZIP: false
2024-02-14T22:35:59.6139955Z INPUT_DRY_RUN: false
2024-02-14T22:35:59.6140341Z ##[endgroup]
2024-02-14T22:35:59.6279095Z allexport off
2024-02-14T22:35:59.6279959Z braceexpand on
2024-02-14T22:35:59.6280558Z emacs off
2024-02-14T22:35:59.6281085Z errexit on
2024-02-14T22:35:59.6281601Z errtrace off
2024-02-14T22:35:59.6281992Z functrace off
2024-02-14T22:35:59.6282340Z hashall on
2024-02-14T22:35:59.6282782Z histexpand off
2024-02-14T22:35:59.6283412Z history off
2024-02-14T22:35:59.6283739Z ignoreeof off
2024-02-14T22:35:59.6284413Z interactive-comments on
2024-02-14T22:35:59.6284809Z keyword off
2024-02-14T22:35:59.6285177Z monitor off
2024-02-14T22:35:59.6285592Z noclobber off
2024-02-14T22:35:59.6285902Z noexec off
2024-02-14T22:35:59.6286256Z noglob off
2024-02-14T22:35:59.6286654Z nolog off
2024-02-14T22:35:59.6287004Z notify off
2024-02-14T22:35:59.6287538Z nounset off
2024-02-14T22:35:59.6287847Z onecmd off
2024-02-14T22:35:59.6288202Z physical off
2024-02-14T22:35:59.6288622Z pipefail off
2024-02-14T22:35:59.6288980Z posix off
2024-02-14T22:35:59.6289318Z privileged off
2024-02-14T22:35:59.6289693Z verbose off
2024-02-14T22:35:59.6290044Z vi off
2024-02-14T22:35:59.6290370Z xtrace off
2024-02-14T22:35:59.6291332Z ℹ︎ SLUG is vern-responsive-video
2024-02-14T22:35:59.6291908Z ℹ︎ VERSION is refs/heads/main
2024-02-14T22:35:59.6292387Z ℹ︎ ASSETS_DIR is .wordpress-org
2024-02-14T22:35:59.6292938Z ➤ Checking out .org repository...
2024-02-14T22:36:01.7208305Z A /home/runner/svn-vern-responsive-video/assets
2024-02-14T22:36:01.7212844Z A /home/runner/svn-vern-responsive-video/tags
2024-02-14T22:36:01.7216538Z A /home/runner/svn-vern-responsive-video/trunk
2024-02-14T22:36:01.7226316Z Checked out revision 3035914.
2024-02-14T22:36:01.7452123Z Updating 'assets':
2024-02-14T22:36:01.8780847Z At revision 3035914.
2024-02-14T22:36:01.8994123Z Updating 'trunk':
2024-02-14T22:36:02.0151150Z At revision 3035914.
2024-02-14T22:36:02.0362643Z Updating 'tags':
2024-02-14T22:36:03.1977669Z At revision 3035914.
2024-02-14T22:36:03.2104956Z ➤ Copying files...
2024-02-14T22:36:03.2105584Z ℹ︎ Using .distignore
2024-02-14T22:36:03.3060439Z ➤ Preparing files...
2024-02-14T22:36:03.3284378Z ➤ Copying tag...
2024-02-14T22:36:03.3361389Z svn: E155010: Path '/home/runner/svn-vern-responsive-video/tags/refs/heads' is not a directory
2024-02-14T22:36:03.3389788Z ##[error]Process completed with exit code 1.
2024-02-14T22:36:03.3553951Z Post job cleanup.
2024-02-14T22:36:03.4286345Z [command]/usr/bin/git version
2024-02-14T22:36:03.4325591Z git version 2.43.0
2024-02-14T22:36:03.4368912Z Temporarily overriding HOME='/home/runner/work/_temp/dcbf158c-8b37-468a-9acf-a45fadb785c3' before making global git config changes
2024-02-14T22:36:03.4371031Z Adding repository directory to the temporary git global config as a safe directory
2024-02-14T22:36:03.4375462Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/vern-responsive-video/vern-responsive-video
2024-02-14T22:36:03.4410361Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-02-14T22:36:03.4442838Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-02-14T22:36:03.4686675Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-02-14T22:36:03.4707502Z http.https://github.com/.extraheader
2024-02-14T22:36:03.4718692Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2024-02-14T22:36:03.4749184Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-02-14T22:36:03.5203266Z Cleaning up orphan processes
from action-wordpress-plugin-deploy.
Hmmm okay so how are you triggering this run? I see 2024-02-14T22:35:59.6291908Z ℹ︎ VERSION is refs/heads/main
in there which tells me that you're running this manually, the way this works assumes that you're using Git tags with version-esque names - the workflow_dispatch
and pull_request
triggers are unlikely to behave the way you want.
from action-wordpress-plugin-deploy.
I don't know of any other way to do it, Since this tag is the current version that the WordPress.org people accepted I don't want to bump version numbers just to run this Action. I'd prefer to only have it happen manually and remove the push
and pull
conditions I copied from another "tutorial" for handling these things. If that's not gonna work I should just give up and work on learning how to use the awful SVN directly.
from action-wordpress-plugin-deploy.
FWIW I still use SVN directly for some things and it's fine, much like Actions it's a tool to learn if you're going to use it. In any case, I'm not really sure what your expectations are for the tag name given that it will deploy live - the stable tag is defined in readme.txt
so as long as you don't update that it shouldn't affect anybody's installations. For safety you could try something like 0.0.1
.
from action-wordpress-plugin-deploy.
Thanks again but I'm afraid I just don't understand these concepts. Why can't this Action run manually? The errors seem to indicate a non-existent folder is being accessed. I have a tag on my latest release, why is that not picked up rather than requiring a new tag to trigger the Action? I'm sorry for wasting your time, there must be something going on like you said where this action just doesn't work manually. And I don't want automated, I only want manual.
from action-wordpress-plugin-deploy.
This Action is built to be automated, I haven't tested it myself but I think you could make it work manually by requiring an input for the version which you would then pass to the workflow for the VERSION
environment variable. What is happening is that when you trigger this manually it is attempting to parse the name of the tag out of Git, and because workflow_dispatch
is running from main what it's parsing out is refs/heads/main
instead of something like 1.3.1
, which is then not a valid directory under the tags
directory in the SVN checkout.
Adding that input is going to be a lot more work than you creating a tag in the GitHub interface named 0.0.1
or whatever isn't your currently defined stable tag, which will not be served to users as an update.
from action-wordpress-plugin-deploy.
I appreciate the explanation and your quick responses. The fact that there's no easy way to add a tag to trigger an Action without creating a fake release that you later delete means I haven't tried that. I tried following a tutorial for TortoiseSVN but it didn't work. This is just too much hassle to be on the WordPress.org repository so even though I am approved I guess no one will ever be able to use it because I can't get the files onto site.
from action-wordpress-plugin-deploy.
I think it would help to understand what you are trying to do and how you expect this work long-term (will you always manually trigger it, how is that different from creating the tag in Git/GitHub, etc.). There is a dry-run
option for this Action that will not commit to the plugin directory but you still need to have a proper tag name without slashes somehow and doing that without adjustments directly from workflow_dispatch
won't get you there.
from action-wordpress-plugin-deploy.
Related Issues (20)
- README Example should indicate actions/checkout@master is required HOT 1
- Changing file X is forbidden by the server HOT 1
- [Feature Request] Update readme.txt while deploying HOT 3
- fatal: detected dubious ownership in repository at '/github/workspace' HOT 10
- Sync from GIT to SVN fails for tags HOT 7
- set-output command deprecated in last release HOT 4
- Support a "DRY RUN" mode that can be used while testing HOT 3
- Fix deploy script to not attempt re-publishing the same version of a plugin
- Action workflow examples
- Dry run is on by default HOT 2
- Unable to deploy to WP (for two releases) despite workflow marked as succeeded HOT 1
- svn: E155007: '/somedir/somefile' is not a working copy HOT 3
- If the version already exists in SVN and generate-zip is configured, it should also generate the ZIP HOT 1
- After first action I'm getting "trunk is not a working copy" error HOT 1
- Action fails when the .distignore file is not present.
- WP CLI `.distignore` syntax is changing HOT 2
- Use SVN copy from trunk to new tag folder to improve deploy times HOT 3
- What wrong with my action script? HOT 2
- '/home/runner/svn-{plugin-slug}/tags/refs/heads' is not a directory after auto create release HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action-wordpress-plugin-deploy.