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

flood of set-output deprecation warnings #758

Closed
patriziobrunops opened this issue Oct 25, 2022 · 5 comments
Closed

flood of set-output deprecation warnings #758

patriziobrunops opened this issue Oct 25, 2022 · 5 comments

Comments

@patriziobrunops
Copy link

patriziobrunops commented Oct 25, 2022

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/

My workflow summaries are getting flooded by the above message, which is muddling the workflow summary making it difficult to read. I'm using gittools actions version 0.9.14, which seem to be using @actions/core v1.10.0 as indicated by the blog post 🤔

@arturcic
Copy link
Member

@patriziobrunops is your workflow public? overwise can you post the part of the workflow starting with checkout up to the gittools actions?

@patriziobrunops
Copy link
Author

patriziobrunops commented Oct 25, 2022

@arturcic, thanks for the fast follow up. Here's my workflow:

name: Set Version

on:
  workflow_call:
    inputs:
      targetPath:
        type: string
        description: Optionally supply the path to the working directory.
        default: .
        required: false
      configFilePath:
        type: string
        description: Optional path to config file (defaults to GitVersion.yml).
        default: GitVersion.yml
        required: false
    outputs:
      sha: 
        value: ${{ jobs.setup-version.outputs.Sha }}
      shortSha:
        value: ${{ jobs.setup-version.outputs.ShortSha }}
      semver: 
        value: ${{ jobs.setup-version.outputs.semVer }}

jobs:
  setup-version:
    runs-on: ubuntu-latest
    outputs:
      sha:  ${{ steps.gitversion.outputs.Sha }}
      shortSha: ${{ steps.gitversion.outputs.ShortSha }}
      semVer: ${{ steps.gitversion.outputs.semVer }}
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - name: Install GitVersion
        uses: gittools/actions/gitversion/setup@v0.9.14
        with:
          versionSpec: '5.x'
      - name: Determine Version
        id: gitversion
        uses: gittools/actions/gitversion/execute@v0.9.14
        with:
          useConfigFile: true
          targetPath: ${{ inputs.targetPath }}
          configFilePath: ${{ inputs.configFilePath }}

@vktr
Copy link

vktr commented Oct 28, 2022

I also have the same behavior in my actions.

Build output: https://github.com/porla/core/actions/runs/3347499683/jobs/5545550773 (check the Install GitVersion and Calculate version steps).

Workflow: https://github.com/porla/core/blob/main/.github/workflows/ci.yaml

arturcic added a commit to arturcic/gittools-actions that referenced this issue Oct 28, 2022
Updated dist files
arturcic added a commit that referenced this issue Oct 28, 2022
@arturcic
Copy link
Member

@patriziobrunops, @vktr fixed in version 0.9.15, ca you confirm?

@vktr
Copy link

vktr commented Oct 28, 2022

@arturcic Confirmed - thanks!

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

3 participants