Giter VIP home page Giter VIP logo

Comments (5)

Stas-AbsoluteDesign avatar Stas-AbsoluteDesign commented on June 26, 2024 1

@ravenium well, the breaking change is set:output GutHub deprecation, there will be a new way of outputting variables.
They aim to put it down later this year: "This will come into effect starting on September 27th". So by the look of no issues or updates made to this repository - it seems that at the date above it will be just completely dead\non-functional.

This issue's purpose is mainly to warn people to avoid using it in the long term run. And as it comes up very early when you search "git changes" on the marketplace and has lots of starts\installs - it is better to draw attention here. Probably, it is even worth adding an "abandoned" label straight to the readme file to show this message on marketplace\github to avoid the further spreading of an abandoned tool.

from get-changed-files.

ravenium avatar ravenium commented on June 26, 2024

@Stas-AbsoluteDesign Any idea what specific functionality it's deprecating? I noticed a Node 12 vs 16 warning today (and some set-output warnings) but that was about it.

The only reason I went against tj-actions is that it has to checkout the entire repo to compare for changed files. This wouldn't be the end of the world (only lasts for the life of the workflow) except the tool I am using after it only works on directories and not individual files. I had to basically rm -rf before running the next action (which downloads only the changed files in the PR for processing in the tool action).

I'm sure there's a better way but I haven't stumbled across it yet. (using https://github.com/Bhacaz/checkout-files to grab the individual changed files)

from get-changed-files.

subelsky avatar subelsky commented on June 26, 2024

Looks like @masesdevelopers came to the rescue with https://github.com/masesgroup/retrieve-changed-files

see #55

from get-changed-files.

ravenium avatar ravenium commented on June 26, 2024

I ended up manually writing git diff commands in a custom action. This definitely looks a bit more elegant :)

from get-changed-files.

matveym avatar matveym commented on June 26, 2024

Yep, git diff is very easy to do:

           - name: Get changed files
              id: changed-files
              run: |
                  git fetch origin master
                  diff=$(git diff --name-only --diff-filter=AM origin/main..HEAD | tr '\n' ' ')
                  echo "ADDED_MODIFIED=$diff" >> "$GITHUB_OUTPUT"

from get-changed-files.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.