Comments (4)
Ah, now I realised that this action is supposed to check for changes for the previous commit or the pull request and not local changes.
from paths-filter.
With some small changes I could make it work with local changes too. Could you please shortly describe your use case?
from paths-filter.
I managed to solve my issue with a simple run phase:
- name: Detect changes in distributed code
if: ${{ github.event.inputs.force != 'true' }}
id: changes
run: |
if [[ $(git status --porcelain ./dist) != "" ]]; then
echo "::set-output name=dist::true"
fi
I have a workflow that updates dependencies for my GitHub Action but only (commits, pushes and) creates a pull request if the distributed code changed or the force input was set to true. (In case there is a security vulnerability in one of the development dependencies I want to force update, otherwise only if the actual output code changed) This workflow also runs weekly with a cron trigger.
from paths-filter.
Detecting local changes is pretty easy. Usually there's no real need for a 3rd party action as you already figured out. Anyway supporting this will require just a cosmetic changes to what I have already so I will add it in next days.
Thanks for the idea 👍
from paths-filter.
Related Issues (20)
- Import filters file from another repository HOT 1
- Bug: Filter Action reading files from wrong PR HOT 2
- Feature request: Only perform a checkout when it is required for paths-filter to operate.
- [Feature request] Return as changed array HOT 1
- Exclude few folders in one filter HOT 3
- Detecting changes against main branch on main branch merge? HOT 2
- Become 'Verified creator' on GitHub Marketplace HOT 3
- Token clarification
- Override option to set all Filters to true HOT 2
- Changed files with git commands detects too many files
- Is it possible to check if a single folder has changed? HOT 2
- filter in folder changes does not seem to work HOT 1
- Error: Unable to locate executable file: git HOT 4
- Scheduled build always running even if no change in filter path HOT 4
- Node.js 16 actions are deprecated HOT 7
- Update major version tags to point to latest minor version commit when released HOT 2
- How to add individual files to this filter? HOT 1
- Create v3 short tag pointing at the latest v3 release HOT 1
- Working directory does not provide changes paths relative to it. HOT 1
- VSCode "Context Access might be invalid" warning HOT 2
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 paths-filter.