Skip to content

Commit

Permalink
Add config option for artifact name in build_charms_with_cache.yaml (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlcsaposs-canonical authored Feb 14, 2023
1 parent c7a28ed commit 6c5a978
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build_charms_with_cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
# See LICENSE file for licensing details.
on:
workflow_call:
inputs:
artifact-name:
description: Packed charms are uploaded to this GitHub artifact name
default: charms-packed-with-cache
type: string
outputs:
artifact-name:
description: Packed charms are uploaded to this GitHub artifact name
value: ${{ inputs.artifact-name }}
charms:
description: JSON string of charms built
value: ${{ jobs.collect-charms.outputs.charms }}
Expand Down Expand Up @@ -112,7 +120,7 @@ jobs:
- name: Upload packed charm
uses: actions/upload-artifact@v3
with:
name: charms-packed-with-cache
name: ${{ inputs.artifact-name }}
# .empty file required to preserve directory structure
# See https://github.com/actions/upload-artifact/issues/344#issuecomment-1379232156
path: |
Expand Down

0 comments on commit 6c5a978

Please sign in to comment.