From b70f59eed4899c6652679ff68ae4f9589a7ae310 Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Sun, 17 Sep 2023 01:46:50 +0200 Subject: [PATCH] debug --- .github/actions/generate-metadata/action.yml | 61 +++++++++++++------- 1 file changed, 39 insertions(+), 22 deletions(-) diff --git a/.github/actions/generate-metadata/action.yml b/.github/actions/generate-metadata/action.yml index 8e3c5ece..5e55afba 100644 --- a/.github/actions/generate-metadata/action.yml +++ b/.github/actions/generate-metadata/action.yml @@ -22,28 +22,45 @@ runs: with: path: plugins_metadata.json key: plugins_metadata - - name: fetch metadata - if: steps.cache-plugins-restore.outputs.cache-hit != 'true' || (! ${{ inputs.cache }}) - id: fetch_metadata - env: - GITHUB_TOKEN: ${{ inputs.gh_token }} - run: aiida-registry fetch - shell: bash - - name: Check plugins installation - if: steps.cache-plugins-restore.outputs.cache-hit != 'true' || (! ${{ inputs.cache }}) - # This step will attach plugin installation inforamtion to the metadata, e.g. if the plugin can be installed or not - run: aiida-registry test-install + - name: debug + run: | + echo ${{ steps.cache-plugins-restore.outputs.cache-hit }} + echo ${{ inputs.cache }}} shell: bash - - name: Cache plugins metadata + + - name: am I run? 001 + if: steps.cache-plugins-restore.outputs.cache-hit != 'true' + - name: am I run? 002 if: steps.cache-plugins-restore.outputs.cache-hit != 'true' || (! ${{ inputs.cache }}) - id: cache-plugins-save - uses: actions/cache/save@v3 - with: - path: plugins_metadata.json - key: ${{ steps.cache-plugins-restore.outputs.cache-primary-key }} + run: echo "hello" + - name: am I run? 003 + if: steps.cache-plugins-restore.outputs.cache-hit != 'true' || ${{ inputs.cache }} + run: echo "hello" + - name: am I run? 004 + if: ! ${{ inputs.cache }} + run: echo "hello" + #- name: fetch metadata + # if: steps.cache-plugins-restore.outputs.cache-hit != 'true' || (! ${{ inputs.cache }}) + # id: fetch_metadata + # env: + # GITHUB_TOKEN: ${{ inputs.gh_token }} + # run: aiida-registry fetch + # shell: bash + #- name: Check plugins installation + # if: steps.cache-plugins-restore.outputs.cache-hit != 'true' || (! ${{ inputs.cache }}) + # # This step will attach plugin installation inforamtion to the metadata, e.g. if the plugin can be installed or not + # run: aiida-registry test-install + # shell: bash + #- name: Cache plugins metadata + # if: steps.cache-plugins-restore.outputs.cache-hit != 'true' || (! ${{ inputs.cache }}) + # id: cache-plugins-save + # uses: actions/cache/save@v3 + # with: + # path: plugins_metadata.json + # key: ${{ steps.cache-plugins-restore.outputs.cache-primary-key }} - - name: Move JSON file to the React project - run: | - cp plugins_metadata.json aiida-registry-app/src/ - cp plugins_metadata.json aiida-registry-app/dist/ - shell: bash + #- name: Move JSON file to the React project + # run: | + # cp plugins_metadata.json aiida-registry-app/src/ + # cp plugins_metadata.json aiida-registry-app/dist/ + # shell: bash