From 241b5920f49bc679b3727b02b8eea5881724282e Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Wed, 3 Jan 2024 21:55:13 +0100 Subject: [PATCH] use branch_tip instead of forgejo-test-helper.sh output --- testdata/nested-upload-download/.forgejo/workflows/test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/testdata/nested-upload-download/.forgejo/workflows/test.yml b/testdata/nested-upload-download/.forgejo/workflows/test.yml index cd43827..65c3bfa 100644 --- a/testdata/nested-upload-download/.forgejo/workflows/test.yml +++ b/testdata/nested-upload-download/.forgejo/workflows/test.yml @@ -20,8 +20,9 @@ jobs: image-version: 1.20 - id: testrepo run: | - forgejo-test-helper.sh push testrepo http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} testuser testrepo > /tmp/output - grep '^sha=' < /tmp/output >> $GITHUB_OUTPUT + url=http://testuser:admin1234@${{ steps.forgejo.outputs.host-port }} + forgejo-test-helper.sh push testrepo $url testuser testrepo > /tmp/output + echo sha=$(forgejo-test-helper.sh branch_tip $url testuser/testrepo main) >> $GITHUB_OUTPUT - id: release-upload uses: SELF@vTest with: