Skip to content

Commit

Permalink
Only attempt to decrypt if we have encrypted in the build step
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Ryan Cooke<[email protected]>
  • Loading branch information
rcooke-warwick committed Oct 1, 2024
1 parent e1f1a2f commit c3d6770
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/yocto-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,9 @@ jobs:
path: ${{ env.WORKSPACE }}

- name: Decrypt artifacts
if: |
github.event.repository.private != true &&
(inputs.sign-image == true || needs.build.outputs.is_private == 'true')
working-directory: ${{ env.WORKSPACE }}
run: |
for artifact in *.enc **/*.enc; do
Expand Down

0 comments on commit c3d6770

Please sign in to comment.