Skip to content

Switch to the new $GITHUB_OUTPUT mechanism from set-output in CI #659

Description

@fadeev

🛠️ Refactor suggestion

Deprecated set-output – switch to the new $GITHUB_OUTPUT mechanism

The command was removed in October 2023 and will eventually error out. Refactor to:

-          git diff --cached --exit-code || echo "::set-output name=changed::true"
+          if ! git diff --cached --quiet; then
+            echo "changed=true" >> "$GITHUB_OUTPUT"
+          fi

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions