Skip to content

Commit

Permalink
Added OWNER variable for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammedSentry committed Jun 12, 2024
1 parent 843e6fd commit 4725b7d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 4725b7d

Please sign in to comment.