useparagon / paragraph-push

0 stars 1 forks source link

"Not a Paragon Project" #3

Open glaidler opened 4 months ago

glaidler commented 4 months ago

How do I specify this to run the para build within a project folder?

Without this, the action always errors with "Not a Paragon Project"

ethanlee16 commented 4 months ago

Hey @glaidler - do you mind sharing the usage of this GitHub Action in your workflow file so that we can better debug?

One thing to consider using is working-directory, which would look like this in your workflow file:

jobs:
  push_to_paragon:
    name: Push to Paragon
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4
      - id: push
+       working-directory: [DIRECTORY HERE]
        uses: useparagon/paragraph-push@v1
        with:
          paragonKey: ${{ secrets.PARAGON_CLI_KEY }}
          paragonZeusUrl: ${{ secrets.ZEUS_URL }}
          paragonDashboardUrl: ${{ secrets.DASHBOARD_URL }}
glaidler commented 4 months ago

I have tried this, but get vscode syntax errors.

image

All docs suggest that the working-directory only works with a "run", not with "uses"? https://stackoverflow.com/questions/58139175/running-actions-in-another-directory

ethanlee16 commented 4 months ago

I see - can we try using it in the defaults for this job instead?

jobs:
  push_to_paragon:
    name: Push to Paragon
    runs-on: ubuntu-latest
+   defaults:
+     run:
+      working-directory: ./harbour-assist

    steps:
      - uses: actions/checkout@v4
      - id: push
        uses: useparagon/paragraph-push@v1
        with:
          paragonKey: ${{ secrets.PARAGON_CLI_KEY }}
          paragonZeusUrl: ${{ secrets.ZEUS_URL }}
          paragonDashboardUrl: ${{ secrets.DASHBOARD_URL }}

edit: this may not work due to the checkout also using that same working directory though - looking into this further

ethanlee16 commented 4 months ago

@glaidler I just added support for an optional path input in the linked PR, can you try referencing this version?

jobs:
  push_to_paragon:
    name: Push to Paragon
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4
      - id: push
-       uses: useparagon/paragraph-push@v1
+       uses: useparagon/paragraph-push@b62d66b21d84f767c716c5cbee1e646d3fbf0db8
        with:
          paragonKey: ${{ secrets.PARAGON_CLI_KEY }}
          paragonZeusUrl: ${{ secrets.ZEUS_URL }}
          paragonDashboardUrl: ${{ secrets.DASHBOARD_URL }}
+         path: ./harbour-assist
glaidler commented 4 months ago

got further! unfortunately there are missing dependencies in that folder.

image

ethanlee16 commented 4 months ago

@glaidler What step is that erroring on?

glaidler commented 4 months ago

image

ethanlee16 commented 4 months ago

@glaidler I just updated the action to use a different strategy to check for a locally-specified CLI version, which should avoid this error. Can you try with this version: @ce0dbba611105ed62e8446e7b401e3e2ce119e43

glaidler commented 4 months ago

Hi - it looks like it's got further, but it's failing still I'm afraid:

image

ethanlee16 commented 4 months ago

@glaidler almost there, thanks for your patience! I reverted a pending change that we have to the locally-specified CLI feature so you can test with just the subfolder support we discussed, let's try: f72d541c58d4b9c9a900a7ec69fc397cb5ef2a45