Skip to content

Commit

Permalink
Merge pull request #60 from MathieuSoysal/59-bug-not-good-day-for-man…
Browse files Browse the repository at this point in the history
…ual-archive-day

Fix archiving specific day bug
  • Loading branch information
MathieuSoysal authored Feb 7, 2024
2 parents 36f3697 + c9cdf6d commit b4d9bfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ jobs:

- name: Build JIB container and publish to GitHub Packages
run: |
mvn package com.google.cloud.tools:jib-maven-plugin:3.3.2:build \
-Djib.from.image=mcr.microsoft.com/playwright/java:v1.41.0-jammy \
mvn package com.google.cloud.tools:jib-maven-plugin:3.4.0:build \
-Djib.from.image=mcr.microsoft.com/playwright/java:v1.41.1-jammy \
-Djib.to.image=ghcr.io/${{ steps.downcase.outputs.lowercase }}:latest \
-Djib.to.auth.username=${{ github.actor }} \
-Djib.to.auth.password=${{ secrets.GITHUB_TOKEN }} $MULTI_MODULE_ARGS $MAIN_CLASS_ARGS
-Djib.to.auth.password=${{ secrets.GITHUB_TOKEN }}
env:
TEST_MAIL : ${{ secrets.TEST_MAIL }}
TEST_PASSWORD : ${{ secrets.TEST_PASSWORD }}
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package io.github.mathieusoysal.archivers;

import java.time.LocalDate;

import io.github.mathieusoysal.data.managment.collectors.DataCollectorFromArchive;
import io.github.mathieusoysal.data.managment.savers.ArchiveName;

Expand All @@ -13,7 +11,7 @@ public void archive() {
var sumUpOfTheDay = dataCollector.getSumUpOfDay(Archiver.getDayToArchive());
ARCHIVE_SAVER
.addPath("available")
.addPath(LocalDate.now())
.addPath(Archiver.getDayToArchive())
.endPathAndSaveData(ArchiveName.DAY_SUM_UP, sumUpOfTheDay);
}

Expand Down

0 comments on commit b4d9bfd

Please sign in to comment.