Skip to content

Commit

Permalink
fix build with shourt sha
Browse files Browse the repository at this point in the history
for 18.04
  • Loading branch information
muhamadazmy committed Oct 19, 2023
1 parent fd2213a commit 3b51aa5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/bin-package-18.04.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ jobs:
if [ "${{ github.ref_type }}" = "tag" ]; then
echo "reference=${ref#refs/tags/}" >> $GITHUB_OUTPUT
else
reference="${{ github.sha }}"
echo "reference=${reference:0:7}" >> $GITHUB_OUTPUT
export reference="${{ github.sha }}"
# in container we have do to this is bash because
# the container default sh which has no support for substring
bash -c 'echo "reference=${reference:0:7}" >> $GITHUB_OUTPUT'
fi
- name: Setup basesystem
run: |
Expand Down

0 comments on commit 3b51aa5

Please sign in to comment.