Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Sep 16, 2023
1 parent f5ab1f5 commit b70f59e
Showing 1 changed file with 39 additions and 22 deletions.
61 changes: 39 additions & 22 deletions .github/actions/generate-metadata/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b70f59e

Please sign in to comment.