Comments (5)
@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.
@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.
Looks like @masesdevelopers came to the rescue with https://github.com/masesgroup/retrieve-changed-files
see #55
from get-changed-files.
I ended up manually writing git diff
commands in a custom action. This definitely looks a bit more elegant :)
from get-changed-files.
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)
- Head commit is not ahead of the base commit HOT 8
- Is it possible to have field rename_from HOT 5
- Get the list of files changed/modified in a release
- Doesn't work for a push of many commits HOT 1
- Support for renamed and modified HOT 2
- Use with `workflow_dispatch` HOT 1
- new feature - scan a set of paths HOT 3
- Error: The head commit for this pull_request event is not ahead of the base commit HOT 5
- Error: Bad credentials HOT 2
- Push action failed with empty list during Github actions outage HOT 1
- Action only returns the first 300 changed files
- Error: a step cannot have both the `uses` and `run` keys HOT 2
- Feature Request: Add support for changing github API url to something else
- Merge from the master branch flags all files as modified
- Action fails to run when amending previous commit
- `set-output` command will be deprecated soon and upgrade to Node16. HOT 7
- mv: unlink /bin/bash: Operation not permitted
- changes made in a specific folder HOT 1
- pull_request_review events are not supported
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from get-changed-files.