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

Error getting latest deploy #15

Open
AlonsoK28 opened this issue Jun 13, 2023 · 1 comment
Open

Error getting latest deploy #15

AlonsoK28 opened this issue Jun 13, 2023 · 1 comment

Comments

@AlonsoK28
Copy link

AlonsoK28 commented Jun 13, 2023

When I try to use this action I getting following error

/usr/bin/docker run --name ghcriomrflynnuploadtonetlifyaction300_0[9](https://github.com/AlonsoK28/amzmation-ssr/actions/runs/5260246609/jobs/9506896259#step:3:10)ddd8 --label ed866e --workdir /github/workspace --rm -e "INPUT_SOURCE-FILE" -e "INPUT_DESTINATION-PATH" -e "INPUT_SITE-NAME" -e "INPUT_BRANCH-NAME" -e "INPUT_NETLIFY-TOKEN" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/amzmation-ssr/amzmation-ssr":"/github/workspace" ghcr.io/mrflynn/upload-to-netlify-action:3.0.0

Error getting latest deploy: could not get deploy for site_id:myId branch:master

This is my action config

  name: deploy scully assets to netflity 
  on:
    workflow_run:
      workflows: ['Remote Dispatch Action Responder']
      types: [completed]

  jobs:

    upload-to-assets-netlify:
      runs-on: ubuntu-latest
      steps:
      - uses: MrFlynn/upload-to-netlify-action@v3
        with:
          source-file: "dist/netlify-upload.zip"
          destination-path: "/netlify-upload.zip"
          site-name: exammple-of-upload-33
          branch-name: master
          netlify-token: ${{ secrets.NETLIFY_TOKEN }}

Any idea ?

@MrFlynn
Copy link
Owner

MrFlynn commented Nov 14, 2023

Hi, sorry about the extremely long response. Github never notified me of this issue and I didn't see it until another issue was created here. Assuming you haven't solved the issue by now, could you re-run the action with debugging enabled? That will give me a bit more detail as to what is going on.

Additionally, could you confirm that your site has a branch called "master" and that there is a pre-existing deployment on the site? One of the limitations of the action is that it requires that some deployment has already happened. It can't start with an empty site at the moment.

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

No branches or pull requests

2 participants