tj-actions / changed-files

:octocat: Github action to retrieve all (added, copied, modified, deleted, renamed, type changed, unmerged, unknown) files and directories.
MIT License
1.82k stars 193 forks source link

[BUG] The `set-output` command is deprecated and will be disabled soon #1206

Closed npoliquin closed 1 year ago

npoliquin commented 1 year ago

Is there an existing issue for this?

Does this issue exist in the latest version?

Describe the bug?

This warning always appears

To Reproduce

name: Files changed

on:
  # Trigger the workflow on push or pull request,
  # but only for the develop branch
  pull_request:
    branches:
      - develop
jobs:
  build:
    runs-on: ubuntu-latest  # windows-latest | macos-latest
    name: Test changed-files
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 2

      - name: Get changed files
        id: changed-files
        uses: tj-actions/changed-files@v14.6
        with:
          json: true
          write_output_files: true

      - name: Verify the contents of the .github/outputs/added_files.json file
        run: |
          cat .github/outputs/added_files.json

What OS are you seeing the problem on?

ubuntu-latest or ubuntu-20.04

Expected behavior?

No warking appear

Relevant log output

Run bash $GITHUB_ACTION_PATH/entrypoint.sh
changed-files
  Resolving repository path...
  Setting up 'temp_changed_files' remote...
  No 'temp_changed_files' remote found
  Creating 'temp_changed_files' remote...
  Getting HEAD info...
  remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0        
  From https://github.com/[...]
   * [new branch]      develop    -> develop
   * [new branch]      develop    -> temp_changed_files/develop
  Retrieving changes between 9ee0cb2857e320d21fcad5b8f1e9b01aac6b97b (develop) → 8eb884cd9d90eecbc8a412eb56ec5ab07cf594a (feat-rome-linter-WEBR-6842)
  Getting diff...
  Added files: .github/workflows/files-changed.yml .github/workflows/rome-linter.yml node-tasks/rome/files-changed.sh node-tasks/rome/linter.js rome.json
  Copied files: 
  Deleted files: 
  Modified files: package.json src/Project/Common/Sitecore.Common.Website/assets/scripts/components_split/abstract-banner/banner-alternator.main.js src/Project/Common/Sitecore.Common.Website/assets/scripts/components_split/accordions/accordion-banner/media-accordion-banner/media-accordion-banner.main.js yarn.lock
  Renamed files: .github/workflows/stylelint.yml
  Type Changed files: 
  Unmerged files: 
  Unknown files: 
  All changed and modified files: .github/workflows/files-changed.yml .github/workflows/rome-linter.yml .github/workflows/stylelint.yml node-tasks/rome/files-changed.sh node-tasks/rome/linter.js package.json rome.json src/Project/Common/Sitecore.Common.Website/assets/scripts/components_split/abstract-banner/banner-alternator.main.js src/Project/Common/Sitecore.Common.Website/assets/scripts/components_split/accordions/accordion-banner/media-accordion-banner/media-accordion-banner.main.js yarn.lock
  All changed files: .github/workflows/files-changed.yml .github/workflows/rome-linter.yml .github/workflows/stylelint.yml node-tasks/rome/files-changed.sh node-tasks/rome/linter.js package.json rome.json src/Project/Common/Sitecore.Common.Website/assets/scripts/components_split/abstract-banner/banner-alternator.main.js src/Project/Common/Sitecore.Common.Website/assets/scripts/components_split/accordions/accordion-banner/media-accordion-banner/media-accordion-banner.main.js yarn.lock
  All modified files: .github/workflows/files-changed.yml .github/workflows/rome-linter.yml .github/workflows/stylelint.yml node-tasks/rome/files-changed.sh node-tasks/rome/linter.js package.json rome.json src/Project/Common/Sitecore.Common.Website/assets/scripts/components_split/abstract-banner/banner-alternator.main.js src/Project/Common/Sitecore.Common.Website/assets/scripts/components_split/accordions/accordion-banner/media-accordion-banner/media-accordion-banner.main.js yarn.lock
  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/
  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/
  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/
  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/
  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/
  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/

Anything else?

No response

Code of Conduct

github-actions[bot] commented 1 year ago

Thanks for reporting this issue, don't forget to star this project if you haven't already to help us reach a wider audience.

jackton1 commented 1 year ago

@npoliquin I'll suggest upgrading to the latest version which is v36 at the moment.