Skip to content

Warning: The add-path command is deprecated and will be disabled soon #13

@g4s8

Description

@g4s8

Hi!

We're using this project to setup protobuf compiler in Github actions: https://github.com/cqfn/degitx/blob/master/.github/workflows/ci.yaml

But it shows warnings on each build:

Warning: The `add-path` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

It seems this action uses some deprecated Github API.

The fill logs is here: https://github.com/cqfn/degitx/runs/1220350933?check_suite_focus=true

Run arduino/setup-protoc@master
  with:
    version: 3.x
    include-pre-releases: false
  env:
    GOROOT: /opt/hostedtoolcache/go/1.14.7/x64
Getting protoc version: v3.13.0
Downloading archive: https://github.com/protocolbuffers/protobuf/releases/download/v3.13.0/protoc-3.13.0-linux-x86_64.zip
/home/runner/work/_actions/arduino/setup-protoc/master/node_modules/@actions/tool-cache/scripts/externals/unzip /home/runner/work/_temp/0d981901-170a-4c18-a300-71739a12a21d
Archive:  /home/runner/work/_temp/0d981901-170a-4c18-a300-71739a12a21d
   creating: include/
   creating: include/google/
   creating: include/google/protobuf/
  inflating: include/google/protobuf/wrappers.proto  
  inflating: include/google/protobuf/field_mask.proto  
  inflating: include/google/protobuf/api.proto  
  inflating: include/google/protobuf/struct.proto  
  inflating: include/google/protobuf/descriptor.proto  
  inflating: include/google/protobuf/timestamp.proto  
   creating: include/google/protobuf/compiler/
  inflating: include/google/protobuf/compiler/plugin.proto  
  inflating: include/google/protobuf/empty.proto  
  inflating: include/google/protobuf/any.proto  
  inflating: include/google/protobuf/source_context.proto  
  inflating: include/google/protobuf/type.proto  
  inflating: include/google/protobuf/duration.proto  
   creating: bin/
  inflating: bin/protoc              
  inflating: readme.txt              
Protoc cached under /opt/hostedtoolcache/protoc/3.13.0/x64
Warning: The `add-path` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
go env GOPATH
/home/runner/go
Warning: The `add-path` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions