From 2ea1ec09a15e0a81b714de3b2292821d065a9187 Mon Sep 17 00:00:00 2001 From: minhkhul Date: Wed, 25 Sep 2024 15:28:14 -0400 Subject: [PATCH 1/5] migrate from mamba-org/provision-with-micromamba@v16 to mamba-org/setup-micromamba@v1 --- .github/workflows/blog.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blog.yaml b/.github/workflows/blog.yaml index 6b254f60..3f5cb3f9 100644 --- a/.github/workflows/blog.yaml +++ b/.github/workflows/blog.yaml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 3 - - uses: mamba-org/provision-with-micromamba@v16 + - uses: mamba-org/setup-micromamba@v1 with: environment-file: environment.yml micromamba-version: latest From d9b41bf3b18628a6c3fd79038bf5b89add539915 Mon Sep 17 00:00:00 2001 From: minhkhul Date: Fri, 27 Sep 2024 13:15:34 -0400 Subject: [PATCH 2/5] test cache-environment --- .github/workflows/blog.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/blog.yaml b/.github/workflows/blog.yaml index 3f5cb3f9..9ef0c2f9 100644 --- a/.github/workflows/blog.yaml +++ b/.github/workflows/blog.yaml @@ -21,16 +21,13 @@ jobs: with: environment-file: environment.yml micromamba-version: latest + log-level: debug + env: + ACTIONS_STEP_DEBUG: true - name: Get Date id: get-date run: echo "name=today::$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT shell: bash - - name: Create environment - run: micromamba env create -n www-main-micromamba -f environment.yml - - name: micromamba info - run: | - micromamba info - micromamba list - name: Install R dependencies env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} From 96a2b54dac52006f24fe395566b47f1ccc877468 Mon Sep 17 00:00:00 2001 From: minhkhul Date: Fri, 27 Sep 2024 13:15:56 -0400 Subject: [PATCH 3/5] test cache-environment --- .github/workflows/blog.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/blog.yaml b/.github/workflows/blog.yaml index 9ef0c2f9..a78a7223 100644 --- a/.github/workflows/blog.yaml +++ b/.github/workflows/blog.yaml @@ -17,17 +17,18 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 3 + - name: Get current date + id: date + run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}" - uses: mamba-org/setup-micromamba@v1 with: environment-file: environment.yml micromamba-version: latest log-level: debug + cache-environment: true + cache-environment-key: environment-${{ steps.date.outputs.date }} env: ACTIONS_STEP_DEBUG: true - - name: Get Date - id: get-date - run: echo "name=today::$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT - shell: bash - name: Install R dependencies env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} From 0a50e317abd14ac17e954a65e42a657af0c16093 Mon Sep 17 00:00:00 2001 From: minhkhul <118945681+minhkhul@users.noreply.github.com> Date: Sun, 29 Sep 2024 18:50:01 -0400 Subject: [PATCH 4/5] test cache-environment remove one day persist --- .github/workflows/blog.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/blog.yaml b/.github/workflows/blog.yaml index a78a7223..88cc0419 100644 --- a/.github/workflows/blog.yaml +++ b/.github/workflows/blog.yaml @@ -17,16 +17,12 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 3 - - name: Get current date - id: date - run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}" - uses: mamba-org/setup-micromamba@v1 with: environment-file: environment.yml micromamba-version: latest log-level: debug cache-environment: true - cache-environment-key: environment-${{ steps.date.outputs.date }} env: ACTIONS_STEP_DEBUG: true - name: Install R dependencies From a764d3352fe5ead0ffc28c1133a89b3a3c8bade7 Mon Sep 17 00:00:00 2001 From: minhkhul <118945681+minhkhul@users.noreply.github.com> Date: Mon, 30 Sep 2024 09:56:15 -0400 Subject: [PATCH 5/5] Update blog.yaml clear debug --- .github/workflows/blog.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/blog.yaml b/.github/workflows/blog.yaml index 88cc0419..8fc635df 100644 --- a/.github/workflows/blog.yaml +++ b/.github/workflows/blog.yaml @@ -23,8 +23,6 @@ jobs: micromamba-version: latest log-level: debug cache-environment: true - env: - ACTIONS_STEP_DEBUG: true - name: Install R dependencies env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}