Skip to content

Commit

Permalink
ci: fix license bundling command (#1434)
Browse files Browse the repository at this point in the history
## This PR

- avoids running the license bundling command if the directory doesn't
exist.

### Notes

Resolves publishing errors like this.


https://github.com/open-feature/flagd/actions/runs/11561455616/job/32180508181

Signed-off-by: Michael Beemer <[email protected]>
  • Loading branch information
beeme1mr authored Oct 28, 2024
1 parent df54b66 commit a862589
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,12 @@ jobs:
run: go-licenses save ./${{ matrix.path }} --save_path=./${{ steps.license-files.outputs.LICENSE_FOLDER }} --force --logtostderr=false 2> ./${{ steps.license-files.outputs.LICENSE_ERROR_FILE }}
continue-on-error: true # tool set stderr which can be ignored and referred through error artefact
- name: Bundle license extracts
run: tar czf ./${{ steps.license-files.outputs.LICENSE_FOLDER }}.tar.gz ./${{ steps.license-files.outputs.LICENSE_FOLDER }}
run: |
if [ -d ./${{ steps.license-files.outputs.LICENSE_FOLDER }} ]; then
tar czf ./${{ steps.license-files.outputs.LICENSE_FOLDER }}.tar.gz ./${{ steps.license-files.outputs.LICENSE_FOLDER }}
else
echo "Directory ./${{ steps.license-files.outputs.LICENSE_FOLDER }} does not exist. Skipping tar creation."
fi
# Bundle release artifacts
- name: Bundle release assets
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
Expand Down

0 comments on commit a862589

Please sign in to comment.