-
-
Notifications
You must be signed in to change notification settings - Fork 4
[help] trying to make it work on a scheduled composer update #9
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
Comments
Hi @patrick-leb, I'm glad you enjoy using this GitHub Action on your pipelines. composer-diff-action/action.yml Lines 8 to 11 in 5b081f9
When providing an empty string to base , the library concats composer.lock to it, causing a comparison between same file, producing an empty output. You can try setting it to HEAD in your workflow:
- name: Generate composer diff
id: composer_diff # To reference the output in comment
uses: IonBazan/composer-diff-action@v1
with:
base: HEAD
no-dev: true
format: mdlist I hope that helps! |
That fixed it! Amazing! May I suggest you add this use case to the docs? it will probably help someone else :) Cheers! |
Thanks for the suggestion - added it in the |
hi there!
You action works perfectly on my PR workflow, no problem there.
I'd like to commit a composer update on a schedule. here is my workflow:
The output of
${{ steps.composer_diff.outputs.composer_diff }}
is empty there. However in the PR check, it will be correct.What am I doing wrong here ?
Thanks!
The text was updated successfully, but these errors were encountered: