GithubHelp home page GithubHelp logo

actions's People

Contributors

bcomnes avatar bdougie avatar calavera avatar devotox avatar geminiwind avatar hrishikesh-k avatar kitop avatar lannonbr avatar pickledish avatar pmarsceill avatar sawa-zen avatar tyankatsu0105 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

actions's Issues

The engine "node" is incompatible with this module. Expected version ">=14.16". Got "12.22.12"

Our mixxx manual CI fails now because of

https://github.com/lydell/urix#deprecated
  [2/4] Fetching packages...
  error [email protected]: The engine "node" is incompatible with this module. Expected version ">=14.16". Got "12.22.12"
  error Found incompatible module.
  info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
  The command '/bin/sh -c yarn global add netlify-cli' returned a non-zero code: 1

Does anyone know how to fix that?

This is the failing run:
https://github.com/mixxxdj/manual/actions/runs/2987908818

Unable to create a new site

I want to provide an action so a site can be created for a new repo (created for a github template).

The build action does not wok and as netlify init doesn't have a non interactive mode I can't use it via the cli action :(

here's my test action which just fails with no error

on: workflow_dispatch
name: Initial publish on Netlify

jobs:
  publish:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@master

    - name: Publish
      uses: netlify/actions/build@master
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        NETLIFY_CMD: ls
        NETLIFY_DIR: _site

"ls" is just a command that should not fail for debugging purposes as my normal command did not work

The failing publish output is

1s
Run netlify/actions/build@master
/usr/bin/docker run --name e05f15b83239460886e9b49d33f9d361_893746 --label 442333 --workdir /github/workspace --rm -e GITHUB_TOKEN -e NETLIFY_CMD -e NETLIFY_DIR -e NETLIFY_SITE_ID: -e NETLIFY_BASE -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_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_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -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/wai-arrm/wai-arrm":"/github/workspace" 442333:e05f15b83239460886e9b49d33f9d361
Deploying

[security] Enforce Branch Protections

This is an issue generated by (for-internal-use-only)github-tools

Description

This repository has exceeded the development grace period, and the repo owner must decide if branch protections should be enforced.
If this repository houses code used in production in any capacity, branch protections must be enforced. Read (for-internal-use-only)here for more details

What do I need to do?

  • You can control whether or not branch protections are enforced by exclusively creating either of the labels:
    'enforce-branch-protections: true' or 'enforce-branch-protections: false'
  • If there is no branch protection control label, this issue will be recreated.
  • Once you have created either label, you can close this issue.
  • If you have issues or questions, please reach out to #internal-security-n-compliance on slack.

CLI Deploy failing on CDN diff

I am trying to build my site in Github Actions and deploy to Netlify using @netlify/actions and getting the following output:

   Warning: JSONHTTPError: Not Found 404
   Warning: 
   {
      "name": "JSONHTTPError",
      "status": 404,
      "json": {
        "code": 404,
        "message": "Not Found"
      }
   }
JSONHTTPError: Not Found
    at parseResponse (/usr/local/share/.config/yarn/global/node_modules/netlify/src/methods/response.js:12:11)
    at runMicrotasks (<anonymous>)
    at async callMethod (/usr/local/share/.config/yarn/global/node_modules/netlify/src/methods/index.js:38:26)
    at async module.exports (/usr/local/share/.config/yarn/global/node_modules/netlify/src/deploy/index.js:78:16)
    at async NetlifyAPI.deploy (/usr/local/share/.config/yarn/global/node_modules/netlify/src/index.js:93:12)
    at async DeployCommand.run (/usr/local/share/.config/yarn/global/node_modules/netlify-cli/src/commands/deploy.js:177:17)
    at async DeployCommand._run (/usr/local/share/.config/yarn/global/node_modules/@oclif/command/lib/command.js:43:20)
    at async Config.runCommand (/usr/local/share/.config/yarn/global/node_modules/@oclif/config/lib/config.js:172:9)
    at async Main.run (/usr/local/share/.config/yarn/global/node_modules/@oclif/command/lib/main.js:22:9)

Here's the YAML from my build config:

      - name: Deploy to Netlify
        uses: netlify/actions/cli@master
        env:
          NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
          NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
        with:
          args: deploy --dir=public --prod
          secrets: '["NETLIFY_AUTH_TOKEN", "NETLIFY_SITE_ID"]'

This is not able to be reproduced locally on my machine, where the deploy works fine.

Error: No such directory /github/workspace/build!

I'm deploying a Jekyll project to Netlify using GitHub Actions. I haven't had any issues until today. Yesterday's deployment executed correctly and deployed to Netlify. Here's my GitHub Actions definition specify for the netlify/actions action:

- name: Deploy to Netlify Production Environment uses: netlify/actions/cli@master env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.PRODUCTION_NETLIFY_SITE_ID }} with: args: deploy --dir=build --prod secrets: '["NETLIFY_AUTH_TOKEN", "NETLIFY_SITE_ID"]'

Here's the logging I see on GitHub actions:

Run netlify/actions/cli@master
with:
args: deploy --dir=build --prod
env:
NETLIFY_AUTH_TOKEN: ***
NETLIFY_SITE_ID: ***
/usr/bin/docker run --name db2d749bf6087bbd045bd9b97e88b050bde79_3ec749 --label 7db2d7 --workdir /github/workspace --rm -e NETLIFY_AUTH_TOKEN -e NETLIFY_SITE_ID -e INPUT_ARGS -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_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_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -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/foo_ui/foo_ui":"/github/workspace" 7db2d7:49bf6087bbd045bd9b97e88b050bde79 deploy --dir=build --prod
› Error: No such directory /github/workspace/build! Did you forget to run a build?
Deploy path: /github/workspace/build
Configuration path: /github/workspace/netlify.toml

In effect, nothing is deployed onto Netlify. The Netlify logs don't show any deployments from today.

I can see nothing has changed for this GitHub Actions in two years. Has something else changed in Netlify CLI or something else in the past day or so?

How to use "netlify.toml"

netlify.toml

[[redirects]]
  from = "/*"
  to = "/index.html"
  status = 200

I adjusted the settings file for the paths to work properly, but I noticed that it is not using it when building

Unable to deploy any changes

Hi there,

Thanks for providing these libraries for deploying changes to Netlify via Github Actions. I have the below configured in my Github workflow which triggers a Netlify build.

  - name: Deploy to Dev
        uses: netlify/actions/build@master
        env:
          NETLIFY_SITE_ID: ${{ secrets.NETLIFY_DEV_SITE_ID }}
          NETLIFY_CMD: npm run build
          NETLIFY_DIR: build/
        if: github.ref == 'refs/heads/develop'

Below is a screenshot of my project in Netlify:

image

Even though everything seems to succeed, I can se no changes on my websites.

What am I doing wrong?

Docker build fails in workflow

Hey guys!

We are using netlify/actions in one of our workflows and since the last few hours have been getting the following errors. Please help.

image

Logs:

2021-05-19T19:54:44.7162611Z ##[section]Starting: Request a runner to run this job
2021-05-19T19:54:45.1537448Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'ubuntu-latest'
2021-05-19T19:54:45.1537562Z Can't find any online and idle self-hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2021-05-19T19:54:45.1538342Z Found online and idle hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2021-05-19T19:54:45.3949106Z ##[section]Finishing: Request a runner to run this job
2021-05-19T19:54:52.5851043Z Current runner version: '2.278.0'
2021-05-19T19:54:52.5877875Z ##[group]Operating System
2021-05-19T19:54:52.5878728Z Ubuntu
2021-05-19T19:54:52.5879203Z 20.04.2
2021-05-19T19:54:52.5879724Z LTS
2021-05-19T19:54:52.5880218Z ##[endgroup]
2021-05-19T19:54:52.5880748Z ##[group]Virtual Environment
2021-05-19T19:54:52.5881398Z Environment: ubuntu-20.04
2021-05-19T19:54:52.5882008Z Version: 20210510.0
2021-05-19T19:54:52.5883232Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu20/20210510.0/images/linux/Ubuntu2004-README.md
2021-05-19T19:54:52.5884541Z Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20210510.0
2021-05-19T19:54:52.5885434Z ##[endgroup]
2021-05-19T19:54:52.5887366Z ##[group]GITHUB_TOKEN Permissions
2021-05-19T19:54:52.5888544Z Actions: write
2021-05-19T19:54:52.5889098Z Checks: write
2021-05-19T19:54:52.5889635Z Contents: write
2021-05-19T19:54:52.5890168Z Deployments: write
2021-05-19T19:54:52.5890870Z Issues: write
2021-05-19T19:54:52.5891414Z Metadata: read
2021-05-19T19:54:52.5891966Z Packages: write
2021-05-19T19:54:52.5892491Z PullRequests: write
2021-05-19T19:54:52.5893157Z RepositoryProjects: write
2021-05-19T19:54:52.5893817Z SecurityEvents: write
2021-05-19T19:54:52.5894399Z Statuses: write
2021-05-19T19:54:52.5894979Z ##[endgroup]
2021-05-19T19:54:52.5897883Z Prepare workflow directory
2021-05-19T19:54:52.6479640Z Prepare all required actions
2021-05-19T19:54:52.6490358Z Getting action download info
2021-05-19T19:54:53.0997495Z Download action repository 'actions/checkout@v2'
2021-05-19T19:54:54.7998296Z Download action repository 'actions/cache@v2'
2021-05-19T19:54:55.3615508Z Download action repository 'actions/setup-node@v1'
2021-05-19T19:54:55.8626531Z Download action repository 'netlify/actions@master'
2021-05-19T19:54:56.2864994Z Download action repository 'rtCamp/action-slack-notify@v2'
2021-05-19T19:54:56.7424983Z ##[group]Pull down action image 'ghcr.io/rtcamp/action-slack-notify:v2.1.3'
2021-05-19T19:54:56.7497119Z ##[command]/usr/bin/docker pull ghcr.io/rtcamp/action-slack-notify:v2.1.3
2021-05-19T19:54:58.3747142Z v2.1.3: Pulling from rtcamp/action-slack-notify
2021-05-19T19:54:58.3748392Z c9b1b535fdd9: Pulling fs layer
2021-05-19T19:54:58.3748906Z f597b81b5d49: Pulling fs layer
2021-05-19T19:54:58.3749414Z 5315175e77ba: Pulling fs layer
2021-05-19T19:54:58.3749914Z 180cd15dbe12: Pulling fs layer
2021-05-19T19:54:58.3750496Z f47731e8b606: Pulling fs layer
2021-05-19T19:54:58.3750996Z 35c5edac0302: Pulling fs layer
2021-05-19T19:54:58.3751514Z 25c20a50cc35: Pulling fs layer
2021-05-19T19:54:58.3751991Z 180cd15dbe12: Waiting
2021-05-19T19:54:58.3752442Z f47731e8b606: Waiting
2021-05-19T19:54:58.3752876Z 35c5edac0302: Waiting
2021-05-19T19:54:58.3753327Z 25c20a50cc35: Waiting
2021-05-19T19:54:58.8015683Z c9b1b535fdd9: Verifying Checksum
2021-05-19T19:54:58.8016880Z c9b1b535fdd9: Download complete
2021-05-19T19:54:58.9557547Z c9b1b535fdd9: Pull complete
2021-05-19T19:54:58.9622578Z f597b81b5d49: Verifying Checksum
2021-05-19T19:54:59.1017702Z 5315175e77ba: Verifying Checksum
2021-05-19T19:54:59.1018484Z 5315175e77ba: Download complete
2021-05-19T19:54:59.2183817Z f597b81b5d49: Pull complete
2021-05-19T19:54:59.3447218Z f47731e8b606: Verifying Checksum
2021-05-19T19:54:59.3453466Z f47731e8b606: Download complete
2021-05-19T19:54:59.5332487Z 180cd15dbe12: Verifying Checksum
2021-05-19T19:54:59.5342421Z 180cd15dbe12: Download complete
2021-05-19T19:54:59.5729200Z 35c5edac0302: Verifying Checksum
2021-05-19T19:54:59.5730016Z 35c5edac0302: Download complete
2021-05-19T19:54:59.7041185Z 25c20a50cc35: Verifying Checksum
2021-05-19T19:54:59.7041964Z 25c20a50cc35: Download complete
2021-05-19T19:55:01.2993474Z 5315175e77ba: Pull complete
2021-05-19T19:55:01.8708170Z 180cd15dbe12: Pull complete
2021-05-19T19:55:01.9366720Z f47731e8b606: Pull complete
2021-05-19T19:55:02.0053072Z 35c5edac0302: Pull complete
2021-05-19T19:55:02.0798530Z 25c20a50cc35: Pull complete
2021-05-19T19:55:02.0870069Z Digest: sha256:ad0b6f696e5c476e0068a7b068ae811bd5d27fe8fb38b4c22f0eaeb358edf101
2021-05-19T19:55:02.0887529Z Status: Downloaded newer image for ghcr.io/rtcamp/action-slack-notify:v2.1.3
2021-05-19T19:55:02.0899853Z ghcr.io/rtcamp/action-slack-notify:v2.1.3
2021-05-19T19:55:02.0930231Z ##[endgroup]
2021-05-19T19:55:02.0961082Z ##[group]Build container for action use: '/home/runner/work/_actions/netlify/actions/master/cli/Dockerfile'.
2021-05-19T19:55:02.0965652Z ##[command]/usr/bin/docker build -t 8a33c1:4f9f53036b284dd1a4b683fff6a09816 -f "/home/runner/work/_actions/netlify/actions/master/cli/Dockerfile" "/home/runner/work/_actions/netlify/actions/master/cli"
2021-05-19T19:55:02.1524868Z Sending build context to Docker daemon   5.12kB
2021-05-19T19:55:02.1525837Z 
2021-05-19T19:55:02.2052231Z Step 1/12 : FROM node:12-alpine
2021-05-19T19:55:02.2053746Z  ---> deeae3752431
2021-05-19T19:55:02.2054506Z Step 2/12 : LABEL version="1.0.1"
2021-05-19T19:55:02.2519693Z  ---> Running in cb22737efa35
2021-05-19T19:55:04.7013980Z Removing intermediate container cb22737efa35
2021-05-19T19:55:04.7014683Z  ---> 63a33bae5b12
2021-05-19T19:55:04.7015329Z Step 3/12 : LABEL repository="http://github.com/netlify/actions"
2021-05-19T19:55:04.7251626Z  ---> Running in 9fff982d61b6
2021-05-19T19:55:05.0159758Z Removing intermediate container 9fff982d61b6
2021-05-19T19:55:05.0176904Z  ---> 51fee56787bd
2021-05-19T19:55:05.0213964Z Step 4/12 : LABEL homepage="http://github.com/netlify/actions/netlify"
2021-05-19T19:55:05.0474390Z  ---> Running in ad14e6b6c9f4
2021-05-19T19:55:06.0172893Z Removing intermediate container ad14e6b6c9f4
2021-05-19T19:55:06.0231230Z  ---> 776f289da9c9
2021-05-19T19:55:06.0232718Z Step 5/12 : LABEL maintainer="Netlify"
2021-05-19T19:55:06.0411529Z  ---> Running in c570b8969540
2021-05-19T19:55:07.0173791Z Removing intermediate container c570b8969540
2021-05-19T19:55:07.0272389Z  ---> 7cef703fbe17
2021-05-19T19:55:07.0273165Z Step 6/12 : LABEL "com.github.actions.name"="Netlify"
2021-05-19T19:55:07.0422213Z  ---> Running in f3f33b50a16d
2021-05-19T19:55:08.0166343Z Removing intermediate container f3f33b50a16d
2021-05-19T19:55:08.0232117Z  ---> ad91d82c90e9
2021-05-19T19:55:08.0233282Z Step 7/12 : LABEL "com.github.actions.description"="Wraps the Netlify CLI to enable common Netlify commands"
2021-05-19T19:55:08.0418808Z  ---> Running in 827193183f71
2021-05-19T19:55:09.0162514Z Removing intermediate container 827193183f71
2021-05-19T19:55:09.0163260Z  ---> f2895ee7f9a5
2021-05-19T19:55:09.0163810Z Step 8/12 : LABEL "com.github.actions.icon"="cloud"
2021-05-19T19:55:09.0344437Z  ---> Running in 70290be0fedf
2021-05-19T19:55:10.0165608Z Removing intermediate container 70290be0fedf
2021-05-19T19:55:10.0167096Z  ---> 67df9eafc929
2021-05-19T19:55:10.0167699Z Step 9/12 : LABEL "com.github.actions.color"="blue"
2021-05-19T19:55:10.0380285Z  ---> Running in c816e4a35eec
2021-05-19T19:55:11.0167661Z Removing intermediate container c816e4a35eec
2021-05-19T19:55:11.0168248Z  ---> 21ec3ade288b
2021-05-19T19:55:11.0168718Z Step 10/12 : RUN yarn global add netlify-cli
2021-05-19T19:55:11.0339464Z  ---> Running in d04dbcd28b69
2021-05-19T19:55:13.0979735Z yarn global v1.22.5
2021-05-19T19:55:13.1394569Z [1/4] Resolving packages...
2021-05-19T19:55:16.8200006Z �[91mwarning netlify-cli > @netlify/plugin-edge-handlers > rollup-plugin-node-polyfills > [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
2021-05-19T19:55:19.4200335Z �[0m�[91mwarning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
2021-05-19T19:55:19.4421439Z �[0m�[91mwarning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
2021-05-19T19:55:20.0455368Z �[0m[2/4] Fetching packages...
2021-05-19T19:55:34.1112496Z info @netlify/[email protected]: The platform "linux" is incompatible with this module.
2021-05-19T19:55:34.1114197Z info "@netlify/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
2021-05-19T19:55:34.1115631Z �[91merror @netlify/[email protected]: The engine "node" is incompatible with this module. Expected version ">=15.0.0". Got "12.22.1"
2021-05-19T19:55:34.1188864Z �[0m�[91merror Found incompatible module.
2021-05-19T19:55:34.1189668Z �[0minfo Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
2021-05-19T19:55:37.0770680Z The command '/bin/sh -c yarn global add netlify-cli' returned a non-zero code: 1
2021-05-19T19:55:37.0787208Z ##[warning]Docker build failed with exit code 1, back off 7.585 seconds before retry.
2021-05-19T19:55:44.6650799Z ##[command]/usr/bin/docker build -t 8a33c1:4f9f53036b284dd1a4b683fff6a09816 -f "/home/runner/work/_actions/netlify/actions/master/cli/Dockerfile" "/home/runner/work/_actions/netlify/actions/master/cli"
2021-05-19T19:55:44.7084737Z Sending build context to Docker daemon   5.12kB
2021-05-19T19:55:44.7085295Z 
2021-05-19T19:55:44.7580254Z Step 1/12 : FROM node:12-alpine
2021-05-19T19:55:44.7583205Z  ---> deeae3752431
2021-05-19T19:55:44.7584808Z Step 2/12 : LABEL version="1.0.1"
2021-05-19T19:55:44.7587297Z  ---> Using cache
2021-05-19T19:55:44.7588929Z  ---> 63a33bae5b12
2021-05-19T19:55:44.7591162Z Step 3/12 : LABEL repository="http://github.com/netlify/actions"
2021-05-19T19:55:44.7593485Z  ---> Using cache
2021-05-19T19:55:44.7596857Z  ---> 51fee56787bd
2021-05-19T19:55:44.7597522Z Step 4/12 : LABEL homepage="http://github.com/netlify/actions/netlify"
2021-05-19T19:55:44.7605496Z  ---> Using cache
2021-05-19T19:55:44.7605949Z  ---> 776f289da9c9
2021-05-19T19:55:44.7606398Z Step 5/12 : LABEL maintainer="Netlify"
2021-05-19T19:55:44.7606849Z  ---> Using cache
2021-05-19T19:55:44.7607228Z  ---> 7cef703fbe17
2021-05-19T19:55:44.7607766Z Step 6/12 : LABEL "com.github.actions.name"="Netlify"
2021-05-19T19:55:44.7689237Z  ---> Using cache
2021-05-19T19:55:44.7689678Z  ---> ad91d82c90e9
2021-05-19T19:55:44.7690491Z Step 7/12 : LABEL "com.github.actions.description"="Wraps the Netlify CLI to enable common Netlify commands"
2021-05-19T19:55:44.7692035Z  ---> Using cache
2021-05-19T19:55:44.7692658Z  ---> f2895ee7f9a5
2021-05-19T19:55:44.7693436Z Step 8/12 : LABEL "com.github.actions.icon"="cloud"
2021-05-19T19:55:44.7694101Z  ---> Using cache
2021-05-19T19:55:44.7694915Z  ---> 67df9eafc929
2021-05-19T19:55:44.7695612Z Step 9/12 : LABEL "com.github.actions.color"="blue"
2021-05-19T19:55:44.7696241Z  ---> Using cache
2021-05-19T19:55:44.7696614Z  ---> 21ec3ade288b
2021-05-19T19:55:44.7703060Z Step 10/12 : RUN yarn global add netlify-cli
2021-05-19T19:55:44.7795667Z  ---> Running in 0fba98dee629
2021-05-19T19:55:45.1821833Z yarn global v1.22.5
2021-05-19T19:55:45.2202961Z [1/4] Resolving packages...
2021-05-19T19:55:48.5310971Z �[91mwarning netlify-cli > @netlify/plugin-edge-handlers > rollup-plugin-node-polyfills > [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
2021-05-19T19:55:50.9719262Z �[0m�[91mwarning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
2021-05-19T19:55:50.9744434Z �[0m�[91mwarning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
2021-05-19T19:55:51.5471755Z �[0m[2/4] Fetching packages...
2021-05-19T19:56:05.6561939Z info @netlify/[email protected]: The platform "linux" is incompatible with this module.
2021-05-19T19:56:05.6564057Z info "@netlify/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
2021-05-19T19:56:05.6570066Z info @netlify/[email protected]: The platform "linux" is incompatible with this module.
2021-05-19T19:56:05.6571646Z info "@netlify/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
2021-05-19T19:56:05.6573510Z �[91merror @netlify/[email protected]: The engine "node" is incompatible with this module. Expected version ">=15.0.0". Got "12.22.1"
2021-05-19T19:56:05.6665006Z �[0minfo Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
2021-05-19T19:56:05.6666103Z �[91merror Found incompatible module.
2021-05-19T19:56:08.4231352Z The command '/bin/sh -c yarn global add netlify-cli' returned a non-zero code: 1
2021-05-19T19:56:08.4232238Z �[0m
2021-05-19T19:56:08.4239407Z ##[warning]Docker build failed with exit code 1, back off 4.562 seconds before retry.
2021-05-19T19:56:12.9855834Z ##[command]/usr/bin/docker build -t 8a33c1:4f9f53036b284dd1a4b683fff6a09816 -f "/home/runner/work/_actions/netlify/actions/master/cli/Dockerfile" "/home/runner/work/_actions/netlify/actions/master/cli"
2021-05-19T19:56:13.0246217Z Sending build context to Docker daemon   5.12kB
2021-05-19T19:56:13.0246761Z 
2021-05-19T19:56:13.0767720Z Step 1/12 : FROM node:12-alpine
2021-05-19T19:56:13.0771365Z  ---> deeae3752431
2021-05-19T19:56:13.0772314Z Step 2/12 : LABEL version="1.0.1"
2021-05-19T19:56:13.0776357Z  ---> Using cache
2021-05-19T19:56:13.0777145Z  ---> 63a33bae5b12
2021-05-19T19:56:13.0778451Z Step 3/12 : LABEL repository="http://github.com/netlify/actions"
2021-05-19T19:56:13.0782176Z  ---> Using cache
2021-05-19T19:56:13.0783009Z  ---> 51fee56787bd
2021-05-19T19:56:13.0784449Z Step 4/12 : LABEL homepage="http://github.com/netlify/actions/netlify"
2021-05-19T19:56:13.0790020Z  ---> Using cache
2021-05-19T19:56:13.0790835Z  ---> 776f289da9c9
2021-05-19T19:56:13.0791501Z Step 5/12 : LABEL maintainer="Netlify"
2021-05-19T19:56:13.0794034Z  ---> Using cache
2021-05-19T19:56:13.0794822Z  ---> 7cef703fbe17
2021-05-19T19:56:13.0795628Z Step 6/12 : LABEL "com.github.actions.name"="Netlify"
2021-05-19T19:56:13.0799593Z  ---> Using cache
2021-05-19T19:56:13.0800451Z  ---> ad91d82c90e9
2021-05-19T19:56:13.0802076Z Step 7/12 : LABEL "com.github.actions.description"="Wraps the Netlify CLI to enable common Netlify commands"
2021-05-19T19:56:13.0845107Z  ---> Using cache
2021-05-19T19:56:13.0845711Z  ---> f2895ee7f9a5
2021-05-19T19:56:13.0846285Z Step 8/12 : LABEL "com.github.actions.icon"="cloud"
2021-05-19T19:56:13.0846894Z  ---> Using cache
2021-05-19T19:56:13.0847359Z  ---> 67df9eafc929
2021-05-19T19:56:13.0847974Z Step 9/12 : LABEL "com.github.actions.color"="blue"
2021-05-19T19:56:13.0848548Z  ---> Using cache
2021-05-19T19:56:13.0848988Z  ---> 21ec3ade288b
2021-05-19T19:56:13.0849509Z Step 10/12 : RUN yarn global add netlify-cli
2021-05-19T19:56:13.0990920Z  ---> Running in 7e7bd0c8a5c3
2021-05-19T19:56:13.4777739Z yarn global v1.22.5
2021-05-19T19:56:13.5160276Z [1/4] Resolving packages...
2021-05-19T19:56:16.5518983Z �[91mwarning netlify-cli > @netlify/plugin-edge-handlers > rollup-plugin-node-polyfills > [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
2021-05-19T19:56:19.3337534Z �[0m�[91mwarning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
2021-05-19T19:56:19.3707209Z �[0m�[91mwarning netlify-cli > copy-template-dir > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
2021-05-19T19:56:19.8924079Z �[0m[2/4] Fetching packages...
2021-05-19T19:56:34.0466917Z info @netlify/[email protected]: The platform "linux" is incompatible with this module.
2021-05-19T19:56:34.0468333Z info "@netlify/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
2021-05-19T19:56:34.0469722Z �[91merror @netlify/[email protected]: The engine "node" is incompatible with this module. Expected version ">=15.0.0". Got "12.22.1"
2021-05-19T19:56:34.0548209Z �[0minfo Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
2021-05-19T19:56:34.0549068Z �[91merror Found incompatible module.
2021-05-19T19:56:36.5829342Z The command '/bin/sh -c yarn global add netlify-cli' returned a non-zero code: 1
2021-05-19T19:56:36.5830215Z �[0m
2021-05-19T19:56:36.5834138Z ##[endgroup]
2021-05-19T19:56:36.5928595Z ##[error]Docker build failed with exit code 1
2021-05-19T19:56:36.6200341Z Cleaning up orphan processes

Building a branch

I'm trying to use my actions CI to do both my production and staging deploys. Unfortunately I was using netlify/actions/build for production, but when I went to set it up for staging (commits to my develop branch are what we consider staging) I didn't see an option to set a branch or contexts. As far as I can see, it'll just always use the production branch.

I would have liked to PR in an option for this, but there is no public documentation for the /api/v1/github/$GITHUB_REPOSITORY/build endpoint, so I assume it's for internal use only. Perhaps the better way for me to do this is with netlify/actions/cli using the build command?

Redirecting output is failing

After this commit b56d0f2 it's not possible to redirect the output of the entrypoint command.

Seems like everything passed through is parsed as args, see the examples below:

image

image

This may be because the removal of the sh -c that wrapped the command before.

Deploys to Manual site using CLI failing with 'Error: Not Found'

Hi! If this would be better in another repo or venue, let me know :)

I'm experimenting with GitHub Actions and would like to try and use it to deploy to a Netlify site, currently configured for manual deploys.

Netlify site: dazzling-cori-fd7552

The site's Actions config is in this repo: https://github.com/mattdsteele/candy-dispenser-site

      - name: Deploy to Netlify
        uses: 'netlify/actions/cli@master'
        env:
          NETLIFY_AUTH_TOKEN: ${{secrets.NETLIFY_ACCESS_TOKEN}}
          NETLIFY_SITE_ID: ${{secrets.NETLIFY_SITE}}
          BUILD_COMMAND: 'pwd && ls -la ${GITHUB_WORKSPACE}/dist/'
        with:
          args: 'deploy -p -d ${GITHUB_WORKSPACE}/dist/'

It's failing with an "Error: not found" message:

Run netlify/actions/cli@master
/usr/bin/docker run --name bb81a791fb6e8d7f424b95116766bffc6b7f_a6a211 --label 04bb81 --workdir /github/workspace --rm -e NETLIFY_AUTH_TOKEN -e NETLIFY_SITE_ID -e BUILD_COMMAND -e INPUT_ARGS -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -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/candy-dispenser-site/candy-dispenser-site":"/github/workspace" 04bb81:a791fb6e8d7f424b95116766bffc6b7f deploy -p -d ${GITHUB_WORKSPACE}/dist/
grep: /github/home/ignore: No such file or directory
 ›   Error: Not Found
##[error]Docker run failed with exit code 2

Full details here: https://github.com/mattdsteele/candy-dispenser-site/commit/637e33cf2621d863356f7c690297e710253163c4/checks

I've tried several different flags like --dir=./dist but can't seem to change the error message.

Do I have something misconfigured, or am I misunderstanding how to use the CLI Action?

Node 10 breaks newest netlify-cli

👋

Hey there,

netlify-cli depends on netlify which then depends on @netlify/open-api.

The latter has engines set to "12" in its package.json, however the current docker file is using Node 10. This breaks all GitHub actions that are using the netlify actions right now.

Full Log:

2020-02-27T09:27:33.7506412Z ##[section]Starting: Request a runner to run this job
2020-02-27T09:27:34.0239360Z Requesting a hosted runner in current repository's account/organization with labels: 'ubuntu-latest', require runner match: True
2020-02-27T09:27:34.0937918Z Labels matched hosted runners has been found, waiting for one of them get assigned for this job.
2020-02-27T09:27:34.1143850Z ##[section]Finishing: Request a runner to run this job
2020-02-27T09:27:39.5375080Z Current runner version: '2.165.2'
2020-02-27T09:27:39.5376368Z Prepare workflow directory
2020-02-27T09:27:39.5726649Z Prepare all required actions
2020-02-27T09:27:39.5743219Z Download action repository 'actions/checkout@v1'
2020-02-27T09:27:39.8839283Z Download action repository 'actions/setup-node@v1'
2020-02-27T09:27:40.8422723Z Download action repository 'actions/cache@v1'
2020-02-27T09:27:40.9992754Z Download action repository 'netlify/actions@master'
2020-02-27T09:27:41.2358367Z Download action repository 'ivanjosipovic/actions@9a45120'
2020-02-27T09:27:41.5564021Z Build container for action use: '/home/runner/work/_actions/netlify/actions/master/cli/Dockerfile'.
2020-02-27T09:27:41.5624587Z ##[command]/usr/bin/docker build -t e87b52:7f24099057a4435c92e8bc3568ab62bb "/home/runner/work/_actions/netlify/actions/master/cli"
2020-02-27T09:27:42.3318513Z Sending build context to Docker daemon  4.608kB
2020-02-27T09:27:42.3318785Z 
2020-02-27T09:27:42.3344089Z Step 1/12 : FROM node:10-alpine
2020-02-27T09:27:42.3344520Z  ---> 29fc59abc5de
2020-02-27T09:27:42.3344989Z Step 2/12 : LABEL version="1.0.0"
2020-02-27T09:27:42.8318932Z  ---> Running in 979f74117e07
2020-02-27T09:27:44.4418960Z Removing intermediate container 979f74117e07
2020-02-27T09:27:44.4419803Z  ---> a4610cfe05ca
2020-02-27T09:27:44.4421003Z Step 3/12 : LABEL repository="http://github.com/netlify/actions"
2020-02-27T09:27:44.4587350Z  ---> Running in b67e6e0c6729
2020-02-27T09:27:45.0188750Z Removing intermediate container b67e6e0c6729
2020-02-27T09:27:45.0189880Z  ---> a603a224741a
2020-02-27T09:27:45.0190671Z Step 4/12 : LABEL homepage="http://github.com/netlify/actions/netlify"
2020-02-27T09:27:45.0386888Z  ---> Running in dc10ec7b374d
2020-02-27T09:27:46.0175296Z Removing intermediate container dc10ec7b374d
2020-02-27T09:27:46.0175904Z  ---> 1703f6e637ee
2020-02-27T09:27:46.0176555Z Step 5/12 : LABEL maintainer="Netlify"
2020-02-27T09:27:46.0350721Z  ---> Running in b7ba4ace022a
2020-02-27T09:27:47.0176166Z Removing intermediate container b7ba4ace022a
2020-02-27T09:27:47.0205766Z  ---> eb893780413d
2020-02-27T09:27:47.0206783Z Step 6/12 : LABEL "com.github.actions.name"="Netlify"
2020-02-27T09:27:47.0365520Z  ---> Running in cedd4bd445b0
2020-02-27T09:27:48.0164802Z Removing intermediate container cedd4bd445b0
2020-02-27T09:27:48.0165299Z  ---> adf049521ffb
2020-02-27T09:27:48.0165978Z Step 7/12 : LABEL "com.github.actions.description"="Wraps the Netlify CLI to enable common Netlify commands"
2020-02-27T09:27:48.0414478Z  ---> Running in 3bf5748c914f
2020-02-27T09:27:49.0163835Z Removing intermediate container 3bf5748c914f
2020-02-27T09:27:49.0164587Z  ---> a4611ac2f727
2020-02-27T09:27:49.0165080Z Step 8/12 : LABEL "com.github.actions.icon"="cloud"
2020-02-27T09:27:49.0327556Z  ---> Running in f57cef99d621
2020-02-27T09:27:50.0175492Z Removing intermediate container f57cef99d621
2020-02-27T09:27:50.0186924Z  ---> fe33decbba40
2020-02-27T09:27:50.0187875Z Step 9/12 : LABEL "com.github.actions.color"="blue"
2020-02-27T09:27:50.0343069Z  ---> Running in c79886b4db86
2020-02-27T09:27:51.0163871Z Removing intermediate container c79886b4db86
2020-02-27T09:27:51.0164286Z  ---> 2326ec2a3d3a
2020-02-27T09:27:51.0164755Z Step 10/12 : RUN yarn global add netlify-cli
2020-02-27T09:27:51.0335699Z  ---> Running in 8c987fd9af81
2020-02-27T09:27:55.3703326Z yarn global v1.21.1
2020-02-27T09:27:55.4158168Z [1/4] Resolving packages...
2020-02-27T09:27:56.8573742Z �[91mwarning netlify-cli > @netlify/build > omit.js > babel-runtime > [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
2020-02-27T09:27:57.8749494Z �[0m[2/4] Fetching packages...
2020-02-27T09:28:07.5390446Z info [email protected]: The platform "linux" is incompatible with this module.
2020-02-27T09:28:07.5391045Z info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
2020-02-27T09:28:07.5412616Z �[91merror @netlify/[email protected]: The engine "node" is incompatible with this module. Expected version "12". Got "10.19.0"
2020-02-27T09:28:07.5518105Z �[0m�[91merror Found incompatible module.
2020-02-27T09:28:07.5518714Z �[0minfo Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
2020-02-27T09:28:11.8706313Z The command '/bin/sh -c yarn global add netlify-cli' returned a non-zero code: 1
2020-02-27T09:28:11.8728946Z ##[warning]Docker build failed with exit code 1, back off 4.715 seconds before retry.
2020-02-27T09:28:16.5875532Z ##[command]/usr/bin/docker build -t e87b52:7f24099057a4435c92e8bc3568ab62bb "/home/runner/work/_actions/netlify/actions/master/cli"
2020-02-27T09:28:16.6123856Z Sending build context to Docker daemon  4.608kB
2020-02-27T09:28:16.6124583Z 
2020-02-27T09:28:16.6413216Z Step 1/12 : FROM node:10-alpine
2020-02-27T09:28:16.6414912Z  ---> 29fc59abc5de
2020-02-27T09:28:16.6416556Z Step 2/12 : LABEL version="1.0.0"
2020-02-27T09:28:16.6417949Z  ---> Using cache
2020-02-27T09:28:16.6419285Z  ---> a4610cfe05ca
2020-02-27T09:28:16.6421900Z Step 3/12 : LABEL repository="http://github.com/netlify/actions"
2020-02-27T09:28:16.6423616Z  ---> Using cache
2020-02-27T09:28:16.6425039Z  ---> a603a224741a
2020-02-27T09:28:16.6426600Z Step 4/12 : LABEL homepage="http://github.com/netlify/actions/netlify"
2020-02-27T09:28:16.6428010Z  ---> Using cache
2020-02-27T09:28:16.6429337Z  ---> 1703f6e637ee
2020-02-27T09:28:16.6431045Z Step 5/12 : LABEL maintainer="Netlify"
2020-02-27T09:28:16.6432685Z  ---> Using cache
2020-02-27T09:28:16.6434150Z  ---> eb893780413d
2020-02-27T09:28:16.6435612Z Step 6/12 : LABEL "com.github.actions.name"="Netlify"
2020-02-27T09:28:16.6437408Z  ---> Using cache
2020-02-27T09:28:16.6569575Z  ---> adf049521ffb
2020-02-27T09:28:16.6745867Z Step 7/12 : LABEL "com.github.actions.description"="Wraps the Netlify CLI to enable common Netlify commands"
2020-02-27T09:28:16.6746635Z  ---> Using cache
2020-02-27T09:28:16.6759171Z  ---> a4611ac2f727
2020-02-27T09:28:16.6764660Z Step 8/12 : LABEL "com.github.actions.icon"="cloud"
2020-02-27T09:28:16.6765222Z  ---> Using cache
2020-02-27T09:28:16.6765577Z  ---> fe33decbba40
2020-02-27T09:28:16.6765915Z Step 9/12 : LABEL "com.github.actions.color"="blue"
2020-02-27T09:28:16.6766249Z  ---> Using cache
2020-02-27T09:28:16.6766549Z  ---> 2326ec2a3d3a
2020-02-27T09:28:16.6766895Z Step 10/12 : RUN yarn global add netlify-cli
2020-02-27T09:28:16.6767226Z  ---> Running in 70c173661670
2020-02-27T09:28:17.0879669Z yarn global v1.21.1
2020-02-27T09:28:17.1365191Z [1/4] Resolving packages...
2020-02-27T09:28:18.3837728Z �[91mwarning netlify-cli > @netlify/build > omit.js > babel-runtime > [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
2020-02-27T09:28:19.3927733Z �[0m[2/4] Fetching packages...
2020-02-27T09:28:28.8151437Z info [email protected]: The platform "linux" is incompatible with this module.
2020-02-27T09:28:28.8151925Z info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
2020-02-27T09:28:28.8184777Z �[91merror @netlify/[email protected]: The engine "node" is incompatible with this module. Expected version "12". Got "10.19.0"
2020-02-27T09:28:28.8285820Z �[0minfo Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
2020-02-27T09:28:28.8286262Z �[91merror Found incompatible module.
2020-02-27T09:28:33.1208461Z The command '/bin/sh -c yarn global add netlify-cli' returned a non-zero code: 1
2020-02-27T09:28:33.1222101Z �[0m
2020-02-27T09:28:33.1226830Z ##[warning]Docker build failed with exit code 1, back off 8.236 seconds before retry.
2020-02-27T09:28:41.3562457Z ##[command]/usr/bin/docker build -t e87b52:7f24099057a4435c92e8bc3568ab62bb "/home/runner/work/_actions/netlify/actions/master/cli"
2020-02-27T09:28:41.3977236Z Sending build context to Docker daemon  4.608kB
2020-02-27T09:28:41.3980079Z 
2020-02-27T09:28:41.4275514Z Step 1/12 : FROM node:10-alpine
2020-02-27T09:28:41.4277556Z  ---> 29fc59abc5de
2020-02-27T09:28:41.4279145Z Step 2/12 : LABEL version="1.0.0"
2020-02-27T09:28:41.4280671Z  ---> Using cache
2020-02-27T09:28:41.4281916Z  ---> a4610cfe05ca
2020-02-27T09:28:41.4283438Z Step 3/12 : LABEL repository="http://github.com/netlify/actions"
2020-02-27T09:28:41.4285132Z  ---> Using cache
2020-02-27T09:28:41.4286387Z  ---> a603a224741a
2020-02-27T09:28:41.4287748Z Step 4/12 : LABEL homepage="http://github.com/netlify/actions/netlify"
2020-02-27T09:28:41.4289312Z  ---> Using cache
2020-02-27T09:28:41.4290567Z  ---> 1703f6e637ee
2020-02-27T09:28:41.4292138Z Step 5/12 : LABEL maintainer="Netlify"
2020-02-27T09:28:41.4298746Z  ---> Using cache
2020-02-27T09:28:41.4300227Z  ---> eb893780413d
2020-02-27T09:28:41.4301714Z Step 6/12 : LABEL "com.github.actions.name"="Netlify"
2020-02-27T09:28:41.4302996Z  ---> Using cache
2020-02-27T09:28:41.4304204Z  ---> adf049521ffb
2020-02-27T09:28:41.4305704Z Step 7/12 : LABEL "com.github.actions.description"="Wraps the Netlify CLI to enable common Netlify commands"
2020-02-27T09:28:41.4310592Z  ---> Using cache
2020-02-27T09:28:41.4313744Z  ---> a4611ac2f727
2020-02-27T09:28:41.4371485Z Step 8/12 : LABEL "com.github.actions.icon"="cloud"
2020-02-27T09:28:41.4385554Z  ---> Using cache
2020-02-27T09:28:41.4385920Z  ---> fe33decbba40
2020-02-27T09:28:41.4401082Z Step 9/12 : LABEL "com.github.actions.color"="blue"
2020-02-27T09:28:41.4401628Z  ---> Using cache
2020-02-27T09:28:41.4402096Z  ---> 2326ec2a3d3a
2020-02-27T09:28:41.4402519Z Step 10/12 : RUN yarn global add netlify-cli
2020-02-27T09:28:41.4466187Z  ---> Running in 651a515bd7df
2020-02-27T09:28:41.8585553Z yarn global v1.21.1
2020-02-27T09:28:41.9020341Z [1/4] Resolving packages...
2020-02-27T09:28:43.1924971Z �[91mwarning netlify-cli > @netlify/build > omit.js > babel-runtime > [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
2020-02-27T09:28:44.3866287Z �[0m[2/4] Fetching packages...
2020-02-27T09:28:53.6723397Z info [email protected]: The platform "linux" is incompatible with this module.
2020-02-27T09:28:53.6723923Z info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
2020-02-27T09:28:53.6746577Z �[91merror @netlify/[email protected]: The engine "node" is incompatible with this module. Expected version "12". Got "10.19.0"
2020-02-27T09:28:53.6845975Z �[0m�[91merror Found incompatible module.
2020-02-27T09:28:53.6846411Z �[0minfo Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
2020-02-27T09:28:57.9797379Z The command '/bin/sh -c yarn global add netlify-cli' returned a non-zero code: 1
2020-02-27T09:28:57.9903098Z ##[error]Docker build failed with exit code 1
2020-02-27T09:28:58.0183777Z Cleaning up orphan processes

Unexpected input args

When using the cli i get an error

##[warning]Unexpected input 'args', valid inputs are ['']
Run netlify/actions/cli@master
  with:
    args: deploy --site $NETLIFY_SITE_ID --auth $NETLIFY_AUTH_TOKEN --message "Publishing app" --prod
  env:
    NETLIFY_SITE_ID: ***
    NETLIFY_AUTH_TOKEN: ***

build performance

The Build netlify/actions/cli@master step takes ~1min which decreases the CD performance a lot.
Is there a way to optimize the performance? Could a tagged release help if GitHub caches the result?

Pull Request Preview?

I'd love to be able to:

  • not deploy a preview unless tests / linting passes
  • not use netlify's build servers, as my github actions already have the built assets -- it's be much faster to pass my pre-built files to netlify via upload.

I think if lots of people adopted this strategy of deployment, it would save netlify a bunch of money in build-server time ;)

Deprecated usage of `set-output`

Running an upload to my page like this:

            - name: Publish to Netlify Preview
              uses: netlify/actions/cli@master
              with:
                  args: deploy --dir=export/web/Web
              env:
                  NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
                  NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

Results in the following warnings:

 Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

There's already a PR open to fix this: #65

🎉 Updated CLI action for everyone

👋

I got a bit sick of the netlify/actions/cli consuming an extra 30-50s of runner time on GitHub actions due to it using a Docker layer and requiring that to be built on every run - which by my estimate was resulting in an average deploy time of ~1m 30s when it was used in a workflow.

I made South-Paw/action-netlify-cli a few months back and just figured I should probably share it here too so others can find it and save themselves some runner minutes as well. It usually takes about 30 seconds to run and doesn't have a Docker layer 👍

I've also tried to improve the documentation in the README and ensure the action outputs are consistent and expected.

I hope that by sharing this here, other developers who were looking for an alternative are able to find it 😄

Errors don't result in non-zero exit code of the action

If the command fails with an error, for example,

Run netlify/actions/cli@master
  with:
    args: deploy --dir=docs/docs/docs ${NETLIFY_PRODUCTION:+"--prod"} --message ${NETLIFY_MESSAGE} --alias ${NETLIFY_ALIAS}
  env:
    NETLIFY_AUTH_TOKEN: 
    NETLIFY_SITE_ID: 
    NETLIFY_PRODUCTION: true
    NETLIFY_MESSAGE: 3
    NETLIFY_ALIAS: deploy-preview-3
/usr/bin/docker run --name cff9712c1e1f748db99dcb9993c667878_648ce4 --label 49859c --workdir /github/workspace --rm -e "NETLIFY_AUTH_TOKEN" -e "NETLIFY_SITE_ID" -e "NETLIFY_PRODUCTION" -e "NETLIFY_MESSAGE" -e "NETLIFY_ALIAS" -e "INPUT_ARGS" -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/sage/sage":"/github/workspace" 49859c:ff9712c1e1f748db99dcb9993c667878 deploy --dir=docs/docs/docs ${NETLIFY_PRODUCTION:+"--prod"} --message ${NETLIFY_MESSAGE} --alias ${NETLIFY_ALIAS}
- Waiting for authorization...
 ›   Error: Timed out waiting for authorization. If you do not have a Netlify account, please create one at https://app.netlify.com/signup, then run netlify login again.
Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Logging into your Netlify account...
Opening https://app.netlify.com/authorize?response_type=ticket&ticket=91a7f69d6fb2478223287a71e6a7e81a
---------------------------
Error: Unable to open browser automatically: Running inside a docker container
Please open your browser and open the URL below:
https://app.netlify.com/authorize?response_type=ticket&ticket=91a7f69d6fb2478223287a71e6a7e81a
---------------------------
Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
https://app.netlify.com/authorize?response_type=ticket
Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

then the step is still marked as successful. I would have expected that the step then also fails.

NETLIFY_SITE_ID secret issue in monorepos

Hello,

I just noticed that when I tried to build a monorepo workflow I could not set two different NETLIFY_SITE_ID secret, how was it handle in this video https://vimeo.com/295659187 ?
I'm tempted to use a simple env var but I don't know what the risk is of saving the netlify site id in the git repo.

workflow "Build and deploy frontend on push" {
  on = "push"
  resolves = ["Publish app", "Publish admin"]
}

action "Check files app" {
  uses = "netlify/actions/diff-includes@master"
  args = "app"
}

// This will only be run if there are changes in docs directory in the last set
// of commits pushed
action "Publish app" {
  needs = "Check files app"
  uses = "netlify/actions/build@master"
  // see https://github.com/netlify/actions/tree/master/build for details
  secrets = ["GITHUB_TOKEN", "NETLIFY_SITE_ID"]
  env = {
    BUILD_DIR = "app"
  }
}

action "Check files admin" {
  uses = "netlify/actions/diff-includes@master"
  args = "admin"
}

// This will only be run if there are changes in docs directory in the last set
// of commits pushed
action "Publish admin" {
  needs = "Check files admin"
  uses = "netlify/actions/build@master"
  // see https://github.com/netlify/actions/tree/master/build for details
  secrets = ["GITHUB_TOKEN", "NETLIFY_SITE_ID"]
  env = {
    BUILD_DIR = "admin"
  }
}

Authorization for cli action suddenly does no longer work

Hi,

I just wanted to deploy my app like I have done before (did not change anything inside my repo at all), but somehow the authorization does no longer seem to work. My github env secrets are still intact and my access token on netlify also has not been touched. Any idea what could be happening here and what I could do to fix this?

image

[netlify/actions/build]: "FAILED Publish" Error

I am trying to deploy a preact-cli project but getting this error

Status: Downloaded newer image for gcr.io/github-actions-development/action-runner:latest
Deploying

### FAILED Publish 21:04:18Z (10.663s)

I am using below main.workflow

workflow "Publish on Netlify" {
  on = "push"
  resolves = ["Publish"]
}

action "Publish" {
  uses = "netlify/actions/build@master"
  secrets = ["GITHUB_TOKEN"]
  env = {
    NETLIFY_CMD = "npm run build"
    NETLIFY_DIR = "build"
  }
}

Usage issues

I tried to use the build action to deploy my site https://github.com/r0mflip/jsdiff.netlify.com and I faced a few problems in the process:

Initially I created an empty site(not from git) and then used the actions to trigger a build, but it didn't work because the site wasn't linked. I then had to try various methods to trigger a build (commits at https://github.com/r0mflip/jsdiff.netlify.com/commits/master) and finally realized it.

I then got a new site to work from the actions performing there step-by-step:

  1. New site, actions don't work yet
  2. Link continuous integration(repo)
  3. Let a build run
  4. Remove netlify access to the repo (to disable deploys on normal push, disables the hook), and build settings can be removed from settings (don't remove/change repo url) apparently "auto publishing" and build commands should be left as-is to work
  5. Finally trigger builds using actions (specify build opts)

I think that the linking and un-linking process should be documented so that users creating a new site from empty folder can get actions working.

Double deployment

Since netlify automatically deploys anything merged into the production branch, how do you prevent that from causing a double deployment when using something like actions to deploy? Can you turn off the deployment triggered from a push to the production branch?

deploy a subdirectory succeeds on GitHub Actions but gets No build command found on Netlify

https://stackoverflow.com/questions/64518447/deploy-to-netlify-github-actions-not-working

I'm trying to deploy a subdirectory of my repo to netlify, client, and it's not working, the GitHub action actually succeeds but the netlify deploy log says "No build command found, continuing to publishing",

my yml file:

defaults:
  run:
    working-directory: client

jobs:
   build:
     runs-on: ubuntu-latest

     steps:
       - uses: actions/checkout@v2

       - name: Use Node.js 14
         uses: actions/setup-node@v1
         with:
           node-version: 14.10.1

       - name: install client dependencies
         run: npm ci
         working-directory: client

       - run: npm run build
         working-directory: client

       - name: Netlify Deploy
         uses: netlify/actions/build@master
         env:
           NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
           NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
           NETLIFY_DIR: build

I've also changed it to

NETLIFY_BASE: client
NETLIFY_CMD: npm build
NETLIFY_DIR: client/build

and same thing

How can I use my deploy URL in subsequent actions?

This is my first time using GitHub actions, and I'm trying to create a workflow that creates a deploy preview on Netlify, and then runs a broken link checker on the deploy preview. Unfortunately, I'm having a hard time understanding how I'd be able to pass along information about the deploy to the next step in my workflow.

Show preview URL to as a PR message

Hi,

First of all, congrats to all of contributors, because following your docs, I could setup a Github Action to deploy my application while PR is created or any push to master has done very easy. I guess it takes me no more than 1h!

Sorry if exist that documentation but, could be possible to add a new message at the PR adding the preview URL? I saw Now.sh or Vercel do that.

Thanks in advance!

[build] 404 if git repo contains a period

Thanks for these awesome actions!

I noticed while implementing the build action that I would get 404s for anytime a build was submitted when my GITHUB_REPOSITORY was chaseadamsio/chaseonsoftware.com (you can see this in this run.

I had a theory that maybe this was due to having a . in the repository name, so I renamed my repo to be chaseadamsio/chaseonsoftware, pushed a new commit with the same config as the previous workflow and the action completes succesfully.

Is it possible that there's an issue in the way the repository name is handled?

cli: ENOENT: no such file or directory, stat

Using the cli action to deploy fails with the following:

/usr/bin/docker run --name b3ac6e318b04582d64b81a7a18f724cf72f83_8b35e8 --label 3b3ac6 --workdir /github/workspace --rm -e INSTALL_NIX_WAS_RUN -e NETLIFY_SITE_ID -e NETLIFY_AUTH_TOKEN -e INPUT_ARGS -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_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_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -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/nmattia.com/nmattia.com":"/github/workspace" 3b3ac6:e318b04582d64b81a7a18f724cf72f83 deploy --dir=$(readlink ./build) --message="$GITHUB_SHA" --prod
    Error: ENOENT: no such file or directory, stat 
    '/nix/store/hfalz9j40rpzjzn5f5hmiy2zwiq7vxmx-nmattia-com-builder'
    Code: ENOENT
Deploy path: /nix/store/hfalz9j40rpzjzn5f5hmiy2zwiq7vxmx-nmattia-com-builder

The action was run with deploy --dir=$(readlink ./build) where build exists and point to /nix/store/hfalz9j40rpzjzn5f5hmiy2zwiq7vxmx-nmattia-com-builder which exists too.

Is the demogod repo available to view

We are moving our mono repo (with 3 different netlify sites) over to Github Actions and i'm looking for any examples that would help. The demogod repo seems like it would be the perfect example for the community, but it is a private repo. Is there any way we could have access to this repo or one very similar? Great talk/demo @rafaelconde!!

[Wishlist] Action to rebase split testing branch after commit to master

Is your feature request related to a problem? Please describe.
When a split test is running, we have to remember to rebase the branches in the split test whenever a new blog post is published.

Describe the solution you'd like
Automatically trigger a rebase on the branches being tested when there's a commit to master.

Clarify GITHUB_TOKEN for build action

I see that the build action uses the GITHUB_TOKEN in an Authorization header for a request to the Netlify API:

-H "Authorization: $GITHUB_TOKEN" \
-H "X-GitHub-Event: $GITHUB_EVENT_NAME" \
-H 'Content-Type: application/json' \
--data-binary @args.json \
"https://api.netlify.com/api/v1/github/$GITHUB_REPOSITORY/build"

I had guessed based on the name that GITHUB_TOKEN might be a personal access token with access to the GitHub repo where I am running the action. But seeing it used for the Netlify API, I wonder if instead it would be a token created for access to the Netlify site (which makes a bit more sense).

I'd be happy to create a pull request for the docs to help clarify how to create this GITHUB_TOKEN and what scope it should have if someone could clarify that for me.

Github action error on publish: TypeError: Cannot read property 'replace' of null

This was working fine on 4/7/2020 around 8PM. I just tried to publish again tonight and ran into this GitHub Action publish error

"TypeError: Cannot read property 'replace' of null"

Here is the publish command i was using

  • name: Publish generated Blazor webassembly to Netlify
    uses: netlify/actions/cli@master
    env:
    NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
    NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
    with:
    args: deploy --dir=dist/wwwroot --prod
    secrets: '["NETLIFY_AUTH_TOKEN", "NETLIFY_SITE_ID"]'

Here is the full error:
TypeError: Cannot read property 'replace' of null
at resolvePath (/usr/local/share/.config/yarn/global/node_modules/@netlify/config/src/files.js:36:22)
at searchBaseConfigFile (/usr/local/share/.config/yarn/global/node_modules/@netlify/config/src/path.js:44:20)
at getConfigPath (/usr/local/share/.config/yarn/global/node_modules/@netlify/config/src/path.js:20:7)
at getFullConfig (/usr/local/share/.config/yarn/global/node_modules/@netlify/config/src/main.js:140:28)
at loadConfig (/usr/local/share/.config/yarn/global/node_modules/@netlify/config/src/main.js:112:13)
at resolveConfig (/usr/local/share/.config/yarn/global/node_modules/@netlify/config/src/main.js:59:40)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async DeployCommand.getConfig (/usr/local/share/.config/yarn/global/node_modules/netlify-cli/src/utils/command.js:76:14)
at async DeployCommand.init (/usr/local/share/.config/yarn/global/node_modules/netlify-cli/src/utils/command.js:37:26)
at async DeployCommand._run (/usr/local/share/.config/yarn/global/node_modules/@oclif/command/lib/command.js:43:13)
Complete job

Deployments are "locked" for production context of this site

Hello, I would like to use these actions to deploy my website to Netlify, but the script requires user interaction.

Snímek obrazovky 2020-12-08 v 15 06 39

This is my configuration file:

name: ci

on:
  push:
    branches:
      - main
      - master
  pull_request:
    branches:
      - main
      - master

jobs:
  ci:
    runs-on: ${{ matrix.os }}

    strategy:
      matrix:
        os: [ubuntu-latest]
        node: [14]

    steps:
      - name: Checkout 🛎
        uses: actions/checkout@master

      - name: Setup node env 🏗
        uses: actions/[email protected]
        with:
          node-version: ${{ matrix.node }}

      - name: Cache node_modules 📦
        uses: actions/cache@v2
        with:
          path: ~/.npm
          key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
          restore-keys: |
            ${{ runner.os }}-node-

      - name: Install dependencies 👨🏻‍💻
        run: npm ci

      - name: Run linter 👀
        run: npm run lint

      - name: Build application 🛠
        run: npm run generate

      - name: Deploy to Netlify 🚀
        uses: netlify/actions/cli@master
        env:
          NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
          NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
        with:
          args: deploy --dir=dist --prod

The job does not fail, but no deployment happens.

Should I configure something?
I event tried to enable automatic deployments on every push in Netlify, but even with that option it won't work.

Thank you!

Using environment variables without pushing .env to the repository

When I try to deploy using this on Github actions in my project, I get an error where it can't detect the environment variables I created in my project in netlify.
I have tried other ways like saving environment variables in Github repository secrets but still, the environment variables is not detected.
then when I try to push .env file to the repository, the project runs normally. But I want my .env not to be pushed to the repository, can I do that?

'npm run build' results in Command failed with ENOENT: npm run build

Using the action to build and then deploy a Next.js Project to Netlify from Github CI/CD. The Config is as follows:

      - name: 🧰 Install dependencies for Next.js Build
        run: npm install
        
      - name: 📦 Run Next.js build to generate the static files
        run: npm run build

      - name: 🚀 Deploy to Netlify
        id: deploy-netlify
        uses: netlify/actions/cli@master
        env:
          NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
          NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
        with:
          args: build


This uses the netlify-plugin-nextjs. Which fails to build the project (execute npm run build) with the following error:

Screenshot from 2022-02-23 01-43-51

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.