File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 26
26
INPUT_INSTALL_OPTIONS : ${{ inputs.install_options }}
27
27
INPUT_INSTALL_URL : ${{ inputs.install_url }}
28
28
INPUT_NIX_PATH : ${{ inputs.nix_path }}
29
+ GITHUB_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change @@ -22,8 +22,10 @@ add_config "max-jobs = auto"
22
22
# Allow binary caches for user
23
23
add_config " trusted-users = root $USER "
24
24
# Add github access token
25
- if [[ $INPUT_GITHUB_ACCESS_TOKEN != " " ]]; then
25
+ if [[ -n " ${INPUT_GITHUB_ACCESS_TOKEN :- } " ]]; then
26
26
add_config " access-tokens = github.com=$INPUT_GITHUB_ACCESS_TOKEN "
27
+ elif [[ -n " ${GITHUB_TOKEN:- } " ]]; then
28
+ add_config " access-tokens = github.com=$GITHUB_TOKEN "
27
29
fi
28
30
# Append extra nix configuration if provided
29
31
if [[ $INPUT_EXTRA_NIX_CONFIG != " " ]]; then
You can’t perform that action at this time.
0 commit comments