-
Notifications
You must be signed in to change notification settings - Fork 91
Add minimum dependency generator GitHub Action #2267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| if [[ $(expr match "${{ github.event.pull_request.head.ref }}" "release_v[0-9.]\+") -gt 0 ]]; then | ||
| exit 0; | ||
| elif [[ $(expr match "${{ github.event.pull_request.head.ref }}" "dep-update-[a-zA-Z0-9]*") -gt 0 ]]; then | ||
| elif [[ $(expr match "${{ github.event.pull_request.head.ref }}" "latest-dep-update-[a-zA-Z0-9]*") -gt 0 ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the release notes check to skip latest and minimum dependency branches
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call
There's probably a fancy unix way to do this in one if check hahaha but I don't know what it is right away at least
Codecov Report
@@ Coverage Diff @@
## main #2267 +/- ##
=======================================
Coverage 100.0% 100.0%
=======================================
Files 280 280
Lines 24357 24357
=======================================
Hits 24335 24335
Misses 22 22 Continue to review full report at Codecov.
|
freddyaboulton
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gsheni I think this looks good!
| uses: alteryx/minimum-dependency-generator@v2 | ||
| with: | ||
| requirements_paths: 'core-requirements.txt' | ||
| - name: Save min core requirements and run diff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a way in GH actions to define a "function" which could accept an arg like the requirements file name, and then execute the diff and file write, and then we could call that "function" 3x instead of copy-pasting the code, right? Not required for this PR lol just curious
dsherry
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gsheni thank you for adding this! I love it.
Uh oh!
There was an error while loading. Please reload this page.