From e9fdb099fc58eadd159ec5ad6bedf66e8e8e79de Mon Sep 17 00:00:00 2001 From: Le TOULLEC Martial <308012+koromerzhin@users.noreply.github.com> Date: Tue, 10 Dec 2024 17:31:11 +0100 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5ce632..c86cb92 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,9 +32,14 @@ jobs: - name: linter readme.md run: npm run lint:markdown - name: Cypress run - uses: cypress-io/github-action@v5 + uses: cypress-io/github-action@v6 + - name: Définir les variables de date et de branche + run: | + echo "CURRENT_DATE=$(date '+%Y-%m-%d_%H-%M-%S')" >> $GITHUB_ENV + echo "CURRENT_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV - name: Archive screenshots - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: screenshot - path: cypress/ \ No newline at end of file + name: "sveltejs-${{ env.CURRENT_BRANCH }}_${{ env.CURRENT_DATE }}" + path: cypress/ + retention-days: 7