Skip to content

Commit fc83232

Browse files
authored
fix: ubuntu workflow fixes (runfinch#1441)
Signed-off-by: Cezar Rata <[email protected]>
1 parent 3ab19fd commit fc83232

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/build-and-test-deb.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@ jobs:
5858
if [[ $version =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
5959
echo "Version matches format: $version"
6060
else
61-
echo "Error: Version $version doesn't match format."
62-
exit 1
61+
echo "Version $version doesn't match format. Using test version: 0.0.1+{commit}"
62+
version="0.0.1+${{ github.sha }}""
6363
fi
6464
echo "version=$version" >> ${GITHUB_OUTPUT}
65+
6566
ubuntu-deb-build-and-test:
6667
needs: get-tag-and-version
6768
runs-on: codebuild-finch-${{ inputs.arch }}-2-instance-${{ github.run_id }}-${{ github.run_attempt }}

.github/workflows/upload-deb-to-release.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,11 @@ jobs:
197197
with:
198198
tag_name: ${{ needs.get-tag-name.outputs.version }}
199199
files: |
200-
runfinch-finch_${{ needs.get-tag-and-version.outputs.version }}_amd64.deb
201-
runfinch-finch_${{ needs.get-tag-and-version.outputs.version }}_amd64.deb.sig
202-
runfinch-finch_${{ needs.get-tag-and-version.outputs.version }}_arm64.deb
203-
runfinch-finch_${{ needs.get-tag-and-version.outputs.version }}_arm64.deb.sig
204-
publickey.pem
200+
pool/main/f/runfinch-finch/runfinch-finch_${{ needs.get-tag-and-version.outputs.version }}_amd64.deb
201+
pool/main/f/runfinch-finch/runfinch-finch_${{ needs.get-tag-and-version.outputs.version }}_amd64.deb.sig
202+
pool/main/f/runfinch-finch/runfinch-finch_${{ needs.get-tag-and-version.outputs.version }}_arm64.deb
203+
pool/main/f/runfinch-finch/runfinch-finch_${{ needs.get-tag-and-version.outputs.version }}_arm64.deb.sig
204+
pool/main/f/runfinch-finch/publickey.pem
205205
- name: Delete deb and signature files
206206
run: |
207207
rm -rf runfinch-finch_* publcikey.pem pool/ dists/ GPG_KEY.pub PackagesAMD64 PackagesARM64

0 commit comments

Comments
 (0)