Skip to content

Commit

Permalink
Fixing repo org for gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
renan-souza committed Nov 18, 2022
1 parent f0c6969 commit 613d01b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/create-release-n-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ jobs:
echo $CURRENT_VERSION
REPOSITORY=${{ github.repository }}
ORG="ORNL"
ACCESS_TOKEN=${{ secrets.GITHUB_TOKEN }}
TARGET=${{ steps.branch-name.outputs.current_branch }}
echo "REPOSITORY=$REPOSITORY"
Expand All @@ -46,7 +45,7 @@ jobs:
echo "Get latest PR"
LATEST_PR_JSON=`curl -H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${ACCESS_TOKEN}" \
"https://api.github.com/repos/${ORG}/{$REPOSITORY}/pulls?state=all&per_page=1&sort=created&base=main&direction=desc"`
"https://api.github.com/repos/${REPOSITORY}/pulls?state=all&per_page=1&sort=created&base=main&direction=desc"`
LATEST_PR=`echo $LATEST_PR_JSON | python -c "import json, sys; data = json.load(sys.stdin); print(data[0]['html_url'])"`
echo "Latest PR: ${LATEST_PR}"
Expand Down

0 comments on commit 613d01b

Please sign in to comment.