Skip to content

Commit

Permalink
Store metadata version.
Browse files Browse the repository at this point in the history
  • Loading branch information
everaldorodrigo committed Oct 9, 2023
1 parent 22a547d commit ff4d7a2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/scheduled_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit ff4d7a2

Please sign in to comment.