-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
I see the following at https://michaelcurrin.github.io/dev-cheatsheets/cheatsheets/ci-cd/github-actions/persist.html :
Examples
Get output from npm outdated command, if any.
steps: - name: Check for outdated packages id: vars run: | OUTDATED=$(npm outdated) || true echo "OUTDATED={OUTDATED}" >> $GITHUB_OUTPUT - name: Upgrade if: ${{ steps.vars.outputs.OUTDATED != '' }} run: npm upgrade
I think this example is just wrong and misleading. The output of npm outdated may span across multiple lines, breaking the expected syntax of GITHUB_OUTPUT.
AFAIK, the right solution is this:
https://github.com/github/docs/pull/21599/files
Metadata
Metadata
Assignees
Labels
No labels