From 4725b7d697d2a40841decf6a1fa7bdbb30aee9af Mon Sep 17 00:00:00 2001 From: Mohammed Kaddouri Date: Wed, 12 Jun 2024 16:07:36 +0200 Subject: [PATCH] Added OWNER variable for linux --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fcf21d4..ee7c6d2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,9 +27,14 @@ jobs: - name: Download artifacts from MetricsHub run: | # Define variables - OWNER="MohammedSentry" + OWNER="${{ github.repository_owner }}" REPO="metricshub" BRANCH="main" + + # Debug - Print variables + echo "Owner: $OWNER" + echo "Repo: $REPO" + echo "Branch: $BRANCH" # Get the latest successful workflow run ID WORKFLOW_RUNS=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/$OWNER/$REPO/actions/runs?branch=$BRANCH&status=completed&per_page=5")