Skip to content

Error: The set-env command is deprecated and will be disabled on November 16th. Please upgrade to using Environment Files. #97

@theowenyoung

Description

@theowenyoung

Describe the bug
A clear and concise description of what the bug is.

When use core.exportVariable('envVar', 'Val'); as script, there is an error:

Error: The `set-env` command is deprecated and will be disabled on November 16th. 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/

Log link: https://github.com/theowenyoung/test-actions/actions/runs/359544404

To Reproduce
Steps to reproduce the behavior:

"on":
  - workflow_dispatch
jobs:
  print:
    name: Print 0
    runs-on: ubuntu-latest
    steps:
      - name: test
        uses: actions/github-script@v3
        with:
          script: |
            core.exportVariable('envVar', 'Val');
            return 1

From https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

I think the action should update the @actions/core dependence to 1.2.6

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