Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Marc Neudert <[email protected]>
  • Loading branch information
michalkleiner and mneudert authored Jul 4, 2024
1 parent d5a2c7e commit 11b05fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
is_preview: true

release_preview_version:
needs: [tests, prepare_preview]
needs: [run_matomo_tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
TAG_EXISTS=$( git tag --list "$NEW_VERSION" )
if [[ -n "$TAG_EXISTS" ]]
then
echo "A tag for $tag_exists already exists."
echo "A tag for ${TAG_EXISTS} already exists."
exit 1
fi
Expand All @@ -166,7 +166,7 @@ jobs:
git tag $NEW_VERSION
git push origin tags/$NEW_VERSION
body="## Matomo ${version} (Pre-release)
body="## Matomo ${NEW_VERSION} (Pre-release)
We recommend to read [this FAQ](https://matomo.org/faq/how-to-update/faq_159/) before using a pre-release in a production environment.
Expand All @@ -187,7 +187,7 @@ jobs:
env:
NEW_VERSION: ${{ needs.prepare_preview.outputs.new_version }}

- uses: ncipollo/release-action@v1
- uses: ncipollo/release-action@c4bf6c1ab090090498fb7f3ddc9f99ba5ab619b9
with:
artifacts: "archives/matomo-${{ steps.tag.outputs.version }}.*,archives/piwik-${{ steps.tag.outputs.version }}.*"
allowUpdates: false
Expand Down
2 changes: 1 addition & 1 deletion core/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function nextPreviewVersion($version): string
return '';
}

$dt = date('Ymdhis');
$dt = date('YmdHis');

if ($this->isPreviewVersion($version)) {
// already a preview, update dt and check it's newer
Expand Down

0 comments on commit 11b05fd

Please sign in to comment.