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

Doesn't work with manual trigger (workflow_dispatch) #146

Open
clubside opened this issue Feb 14, 2024 · 10 comments
Open

Doesn't work with manual trigger (workflow_dispatch) #146

clubside opened this issue Feb 14, 2024 · 10 comments

Comments

@clubside
Copy link

Howdy!

I just had my plugin approved and had set things up ahead of time to take advantage of your action. Now that the time is here it doesn't work. Nor do any of the forks. It all seems to be tied into the fact that my plugin is very simple: a single PHP file and readme.txt.

I originally used a .distignore file but have add a .gitattributes as well. Both fail I suppose, the debug information like the documentation around GitHub Actions is obtuse.

My plugin: https://github.com/clubside/vern-responsive-video

My action file:

name: Deploy to WordPress.org
on:
  workflow_dispatch:
  push:
    tags:
    - "*"
  pull_request:
    tags:
    - "*"

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: WordPress Plugin Deploy
        uses: 10up/action-wordpress-plugin-deploy@stable
        env:
          SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
          SVN_USERNAME: ${{ secrets.SVN_USERNAME }}

Most recent failure:

2024-02-14T06:29:50.1913658Z Requested labels: ubuntu-latest
2024-02-14T06:29:50.1913926Z Job defined at: clubside/vern-responsive-video/.github/workflows/wordpress-plugin-svn-deploy.yml@refs/heads/main
2024-02-14T06:29:50.1914006Z Waiting for a runner to pick up this job...
2024-02-14T06:29:50.6421918Z Job is waiting for a hosted runner to come online.
2024-02-14T06:29:53.0767569Z Job is about to start running on the hosted runner: GitHub Actions 16 (hosted)
2024-02-14T06:29:54.9902481Z Current runner version: '2.313.0'
2024-02-14T06:29:54.9925188Z ##[group]Operating System
2024-02-14T06:29:54.9925849Z Ubuntu
2024-02-14T06:29:54.9926218Z 22.04.3
2024-02-14T06:29:54.9926605Z LTS
2024-02-14T06:29:54.9926962Z ##[endgroup]
2024-02-14T06:29:54.9927368Z ##[group]Runner Image
2024-02-14T06:29:54.9927878Z Image: ubuntu-22.04
2024-02-14T06:29:54.9928295Z Version: 20240212.1.0
2024-02-14T06:29:54.9929286Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240212.1/images/ubuntu/Ubuntu2204-Readme.md
2024-02-14T06:29:54.9930811Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240212.1
2024-02-14T06:29:54.9931743Z ##[endgroup]
2024-02-14T06:29:54.9932157Z ##[group]Runner Image Provisioner
2024-02-14T06:29:54.9932717Z 2.0.341.1
2024-02-14T06:29:54.9933080Z ##[endgroup]
2024-02-14T06:29:54.9934111Z ##[group]GITHUB_TOKEN Permissions
2024-02-14T06:29:54.9935688Z Contents: read
2024-02-14T06:29:54.9936127Z Metadata: read
2024-02-14T06:29:54.9936811Z Packages: read
2024-02-14T06:29:54.9937367Z ##[endgroup]
2024-02-14T06:29:54.9940496Z Secret source: Actions
2024-02-14T06:29:54.9941068Z Prepare workflow directory
2024-02-14T06:29:55.0556394Z Prepare all required actions
2024-02-14T06:29:55.0714089Z Getting action download info
2024-02-14T06:29:55.2502208Z Download action repository '10up/action-wordpress-plugin-deploy@stable' (SHA:abb939a0d0bfd01063e8d1933833209201557381)
2024-02-14T06:29:55.6174836Z Complete job name: deploy
2024-02-14T06:29:55.7060992Z ##[group]Run 10up/action-wordpress-plugin-deploy@stable
2024-02-14T06:29:55.7061788Z with:
2024-02-14T06:29:55.7062330Z   generate-zip: false
2024-02-14T06:29:55.7062789Z   dry-run: false
2024-02-14T06:29:55.7063167Z env:
2024-02-14T06:29:55.7063714Z   SVN_PASSWORD: ***
2024-02-14T06:29:55.7064182Z   SVN_USERNAME: ***
2024-02-14T06:29:55.7064722Z ##[endgroup]
2024-02-14T06:29:55.7332676Z ##[group]Run /home/runner/work/_actions/10up/action-wordpress-plugin-deploy/stable/deploy.sh
2024-02-14T06:29:55.7334151Z �[36;1m/home/runner/work/_actions/10up/action-wordpress-plugin-deploy/stable/deploy.sh�[0m
2024-02-14T06:29:55.7378209Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2024-02-14T06:29:55.7379058Z env:
2024-02-14T06:29:55.7379534Z   SVN_PASSWORD: ***
2024-02-14T06:29:55.7380029Z   SVN_USERNAME: ***
2024-02-14T06:29:55.7380587Z   INPUT_GENERATE_ZIP: false
2024-02-14T06:29:55.7381074Z   INPUT_DRY_RUN: false
2024-02-14T06:29:55.7381495Z ##[endgroup]
2024-02-14T06:29:55.7743981Z allexport      	off
2024-02-14T06:29:55.7744614Z braceexpand    	on
2024-02-14T06:29:55.7745060Z emacs          	off
2024-02-14T06:29:55.7745537Z errexit        	on
2024-02-14T06:29:55.7745989Z errtrace       	off
2024-02-14T06:29:55.7746434Z functrace      	off
2024-02-14T06:29:55.7746842Z hashall        	on
2024-02-14T06:29:55.7747319Z histexpand     	off
2024-02-14T06:29:55.7747748Z history        	off
2024-02-14T06:29:55.7748117Z ignoreeof      	off
2024-02-14T06:29:55.7748804Z interactive-comments	on
2024-02-14T06:29:55.7749300Z keyword        	off
2024-02-14T06:29:55.7749695Z monitor        	off
2024-02-14T06:29:55.7750185Z noclobber      	off
2024-02-14T06:29:55.7750636Z noexec         	off
2024-02-14T06:29:55.7751040Z noglob         	off
2024-02-14T06:29:55.7751655Z nolog          	off
2024-02-14T06:29:55.7752058Z notify         	off
2024-02-14T06:29:55.7752525Z nounset        	off
2024-02-14T06:29:55.7752906Z onecmd         	off
2024-02-14T06:29:55.7753309Z physical       	off
2024-02-14T06:29:55.7753795Z pipefail       	off
2024-02-14T06:29:55.7754201Z posix          	off
2024-02-14T06:29:55.7754598Z privileged     	off
2024-02-14T06:29:55.7755059Z verbose        	off
2024-02-14T06:29:55.7755488Z vi             	off
2024-02-14T06:29:55.7755881Z xtrace         	off
2024-02-14T06:29:55.7757697Z ℹ︎ SLUG is vern-responsive-video
2024-02-14T06:29:55.7758364Z ℹ︎ VERSION is refs/heads/main
2024-02-14T06:29:55.7759065Z ℹ︎ ASSETS_DIR is .wordpress-org
2024-02-14T06:29:55.7759806Z ➤ Checking out .org repository...
2024-02-14T06:29:56.1547190Z A    /home/runner/svn-vern-responsive-video/assets
2024-02-14T06:29:56.1550920Z A    /home/runner/svn-vern-responsive-video/tags
2024-02-14T06:29:56.1554731Z A    /home/runner/svn-vern-responsive-video/trunk
2024-02-14T06:29:56.1564077Z Checked out revision 3035405.
2024-02-14T06:29:56.1948602Z Updating 'assets':
2024-02-14T06:29:56.3226907Z At revision 3035405.
2024-02-14T06:29:56.3440522Z Updating 'trunk':
2024-02-14T06:29:56.4618921Z At revision 3035405.
2024-02-14T06:29:56.4827580Z Updating 'tags':
2024-02-14T06:29:56.6093393Z At revision 3035405.
2024-02-14T06:29:56.6220017Z ➤ Copying files...
2024-02-14T06:29:56.6220924Z ℹ︎ Using .gitattributes
2024-02-14T06:29:56.6363501Z fatal: not a git repository (or any of the parent directories): .git
2024-02-14T06:29:56.6378774Z fatal: not a git repository (or any of the parent directories): .git
2024-02-14T06:29:56.6404950Z fatal: not a git repository (or any of the parent directories): .git
2024-02-14T06:29:56.6424025Z fatal: not a git repository (or any of the parent directories): .git
2024-02-14T06:29:56.6425157Z tar: This does not look like a tar archive
2024-02-14T06:29:56.6426167Z tar: Exiting with failure status due to previous errors
2024-02-14T06:29:56.6448358Z ##[error]Process completed with exit code 2.
2024-02-14T06:29:56.6788304Z Cleaning up orphan processes

I have no idea how the "not a git repository" message is even possible given...it is?

Any help greatly appreciated, I hate to have to learn and use SVN for this tiny project.

Thanks,
Chris

@helen
Copy link
Collaborator

helen commented Feb 14, 2024

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 :)

@clubside
Copy link
Author

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

@helen
Copy link
Collaborator

helen commented Feb 14, 2024

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.

@clubside
Copy link
Author

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.

@helen
Copy link
Collaborator

helen commented Feb 14, 2024

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.

@clubside
Copy link
Author

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.

@helen
Copy link
Collaborator

helen commented Feb 14, 2024

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.

@clubside
Copy link
Author

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.

@clubside clubside changed the title Doesn't work with simple plugins Doesn't work with manual trigger (workflow_dispatch) Feb 15, 2024
@helen
Copy link
Collaborator

helen commented Feb 15, 2024

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.

@aaemnnosttv
Copy link
Member

I can confirm that the action does work with workflow_dispatch, it's just a bit unintuitive perhaps, because you need to select the tag you want to deploy when invoking the workflow rather than using the default branch like so

image

As @helen said above, the deploy script attempts to parse out the tag's version from the ref which is what is selected above when doing a manual run, but it will always default to the default branch which is why it's failing for you.

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

No branches or pull requests

3 participants