Skip to content

Commit

Permalink
Fixed token login (#6)
Browse files Browse the repository at this point in the history
Echo $GITHUB_TOKEN env var instead of GITHUB_TOKEN string literal
  • Loading branch information
robvanhout authored Oct 28, 2024
1 parent 696d229 commit 592f63f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
UPSTREAM=${{ inputs.upstream }};
GITHUB_TOKEN=${{ inputs.token }};
if [ -z $UPSTREAM ]; then
echo GITHUB_TOKEN | gh auth login --with-token;
echo $GITHUB_TOKEN | gh auth login --with-token;
UPSTREAM=$(gh api repos/:owner/:repo --jq .parent.full_name);
if [ -z $UPSTREAM ]; then echo "Can't find upstream" >&2 && exit 1; fi;
fi;
Expand Down

0 comments on commit 592f63f

Please sign in to comment.