From ff4d7a24f329320dc7591eb89faccbdf1b3d8238 Mon Sep 17 00:00:00 2001 From: everaldorodrigo Date: Mon, 9 Oct 2023 16:00:48 -0700 Subject: [PATCH] Store metadata version. --- .github/workflows/scheduled_tests.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scheduled_tests.yml b/.github/workflows/scheduled_tests.yml index 9faacdc5..38e974c6 100644 --- a/.github/workflows/scheduled_tests.yml +++ b/.github/workflows/scheduled_tests.yml @@ -39,12 +39,13 @@ jobs: with: # path: ${{ github.workspace }}/.cache/mygeneset-metadata-version # key: ${{ runner.os }}-mygeneset-metadata-version - path: ${{ github.workspace }}/.cache + path: ${{ github.workspace }}/.cache/ key: mygeneset-metadata-version - - name: Show mygeneset metadata version from Cache + - name: Load mygeneset metadata version from Cache run: | echo "${{ env.MYGENESET_METADATA_VERSION }}" + MYGENESET_METADATA_VERSION=$(cat ${{ github.workspace }}/.cache/mygeneset-metadata-version.cache) - name: Compare metadata versions id: compare @@ -69,6 +70,10 @@ jobs: run: | echo "MYGENESET_METADATA_VERSION=${{fromJson(steps.metadataVersion.outputs.output).data.build_date}}" >> $GITHUB_ENV + - name: Create metadata version file in Cache folder + run: | + echo "${{fromJson(steps.metadataVersion.outputs.output).data.build_date}}" >> ${{ github.workspace }}/.cache/mygeneset-metadata-version.cache + - name: Store metadata version variable in Cache uses: actions/cache@v3 with: