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

Update Next action to remove set-output warning #1

Open
chartgerink opened this issue Nov 15, 2022 · 0 comments
Open

Update Next action to remove set-output warning #1

chartgerink opened this issue Nov 15, 2022 · 0 comments

Comments

@chartgerink
Copy link
Member

chartgerink commented Nov 15, 2022

There currently is a build action error that will result in a fail in the near future.

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-markdown-content

I tried the following but that didn't work:

 run: |
          if [ -f "${{ github.workspace }}/yarn.lock" ]; then
            echo "name=manager::yarn" >> $GITHUB_OUTPUT
            echo "name=command::install" >> $GITHUB_OUTPUT
            echo "name=runner::yarn" >> $GITHUB_OUTPUT
            exit 0
          elif [ -f "${{ github.workspace }}/package.json" ]; then
            echo "name=manager::npm" >> $GITHUB_OUTPUT
            echo "name=command::ci" >> $GITHUB_OUTPUT
            echo "name=runner::npx --no-install" >> $GITHUB_OUTPUT
            exit 0
          else
            echo "Unable to determine packager manager"
            exit 1
          fi
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

1 participant