Skip to content

Commit

Permalink
Fix: Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark committed Sep 6, 2023
1 parent 7bfb3fe commit f6e6468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: "Update Dockerfile and action.yml"
id: fetch_version
run: |
latest=$(curl -s https://packagist.org/packages/friendsofphp/php-cs-fixer.json|jq '[.package.versions[]|select(.version|test("^\\d+\\.\\d+\\.\\d+$"))|.version]|max_by(.|[splits("[.]")]|map(tonumber))')
latest=$(curl -s https://packagist.org/packages/friendsofphp/php-cs-fixer.json|jq '[.package.versions[]|select(.version|test("^v\\d+\\.\\d+\\.\\d+$"))|.version]|max_by(.|[splits("[.]")]|map(sub("v";"")|tonumber))|sub("v";"")')
latest=$(echo $latest | tr -d '"')
echo "Latest PHP-CS-Fixer version is $latest"
echo ::set-output name=latest::$latest
Expand Down

0 comments on commit f6e6468

Please sign in to comment.