Skip to content

Commit

Permalink
one day i'll remember my own stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Apr 23, 2024
1 parent 7a92d11 commit d1b7490
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/actions/load-fhir-xsd/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ runs:
_dl_url="${{ inputs.base-url}}/${{ inputs.version }}/${{ inputs.filename }}"
_cache_dir="${{ github.workspace }}/input"
_xsd_cache_dir="${_cache_dir}/${{ inputs.version }}"
_zip_filename="${_cache_dir}/${{ inputs.version }}.zip"
echo "cache-key=${_cache_key}" >> $GITHUB_OUTPUT
echo "cache-dir=${_cache_dir}" >> $GITHUB_OUTPUT
echo "xsd-cache-dir=${_xsd_cache_dir}" >> $GITHUB_OUTPUT
echo "url=${_dl_url}" >> $GITHUB_OUTPUT
echo "zip-filename=${_zip_filename}" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: cache
Expand All @@ -60,10 +62,10 @@ runs:
curl \
-L \
-A '${{ inputs.user-agent }}' \
-o '${{ steps.vars.outputs.cache-dir}}/${{ inputs.filename }}' \
-o '${{ steps.vars.outputs.zip-filename }}' \
'${{ steps.vars.outputs.url }}'
unzip -o -qq '${{ steps.vars.outputs.cache-dir}}/${{ inputs.filename }}' -d '${{ steps.vars.outputs.xsd-cache-dir }}'
unzip -o -qq '${{ steps.vars.outputs.zip-filename }}' -d '${{ steps.vars.outputs.xsd-cache-dir }}'
ls -l '${{ steps.vars.outputs.cache-dir}}'
ls -l '${{ steps.vars.outputs.xsd-cache-dir }}'

0 comments on commit d1b7490

Please sign in to comment.