Skip to content

Commit

Permalink
Fix CHARM_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoflorido committed Apr 24, 2024
1 parent 05f31cd commit c6bd307
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build-charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,15 @@ jobs:
id: cache-charm
uses: actions/cache@v4
with:
path: ${{ inputs.working-directory }}/packed/
path: ${{ inputs.working-directory }}packed/
key: ${{ runner.os}}-${{ env.CHARM_NAME }}-charm-${{ env.SRC_HASH }}

- name: Use cached charm
if: ${{ env.CHARM_NAME != 'UNKNOWN' && steps.cache-charm.outputs.cache-hit == 'true' }}
working-directory: ${{ inputs.working-directory }}/${{ matrix.path }}
run: |
echo "CHARM_FILE=$(ls packed/${{env.CHARM_NAME}}_*.charm)" >> $GITHUB_ENV
- name: Pack charm
if: ${{ env.CHARM_NAME != 'UNKNOWN' && !cancelled() && steps.cache-charm.outputs.cache-hit != 'true' }}
working-directory: ${{ inputs.working-directory }}/${{ matrix.path }}
Expand All @@ -52,5 +58,5 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ${{ env.CHARM_NAME }}-charm
path: ${{ inputs.working-directory }}/packed/${{ env.CHARM_FILE }}
path: ${{ inputs.working-directory }}/${{ env.CHARM_FILE }}
if-no-files-found: error

0 comments on commit c6bd307

Please sign in to comment.