Skip to content

Commit f78d12f

Browse files
committed
use predefined ref name
1 parent eaa387f commit f78d12f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test-opencvsharp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
env:
1717
GH_TOKEN: ${{ github.token }}
1818
run: |
19-
echo "Fetching lastest run of opencvsharp.yml on branch ${GITHUB_REF_NAME}"
20-
RUN_ID=$(gh run list --workflow=opencvsharp.yml --branch=${GITHUB_REF_NAME} --status=success --limit=1 --json databaseId | jq -r '.[0].databaseId')
19+
echo "Fetching lastest run of opencvsharp.yml on branch ${{ github.ref_name }}"
20+
RUN_ID=$(gh run list --workflow=opencvsharp.yml --branch=${{ github.ref_name }}" --status=success --limit=1 --json databaseId | jq -r '.[0].databaseId')
2121
echo "Latest opencvsharp run ID: $RUN_ID"
2222
echo "Downloading artifact 'opencvsharp' from run ${RUN_ID}"
2323
gh run download $RUN_ID --name opencvsharp-linux-x64 --dir opencvsharp

0 commit comments

Comments
 (0)