php-cs-fixer-ga
php-cs-fixer-ga copied to clipboard
Use always newest version of php-cs-fixer
I would use the newest version or make it configureable which version it should use and make it possible to use always the latest version.
currently it is „configurable“ via the docker tag which is based on the release on github.
@OskarStark Okay so this releases are greated automatically?
Unfortunately not, I do this whenever a new release is created 👎🏻 Automating this would be very nice, but I don’t know how
Lets merge this to a separate branch. v2
That will "solve" https://github.com/OskarStark/php-cs-fixer-ga/issues/17. A user can then do the followng to always get the latest php-cs-fixer.
- name: PHP-CS-Fixer
uses: OskarStark/php-cs-fixer-ga@v2
with:
args: --dry-run --diff-format udiff
There will be more maintenance cost to merge features into 2 branches. But Im not sure how many features that is usually added to this lib.
TBH I don't understand the problem here. using @master will always use the latest version of PHP-CS-Fixer
For a specific version you can use it, it gets tagged automatically on dockerhub.
I agree with @OskarStark this PR is not needed, just that maintainer needs to keep on to push over @master each time the new version is updated.
however, I like the @v2 tag proposed by @Nyholm, to be somewhat semver compatible, in case php-cs-fixer v3 appears.
Unfortunately not, I do this whenever a new release is created 👎🏻 Automating this would be very nice, but I don’t know how
We can do it via a GitHub action but it requires some implementation effort ofc..
I think this action could help here: https://github.com/marketplace/actions/find-latest-tag.
Check
- #102
and
- https://github.com/OskarStark/phpstan-ga/pull/58#issuecomment-1702263614
for more infos
See for more info: https://github.com/OskarStark/phpstan-ga/pull/58#issuecomment-1702263614