File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 9393
9494 # set default curl args
9595 CURL='curl -H user-agent:stackexchange-dnscontrol-action -fsS --retry 5 --retry-max-time 30'
96+ CURLJSON="$CURL -H Accept:application/vnd.github.v3+json "
9697 echo "CURL=$CURL" >>"$GITHUB_ENV"
98+ echo "CURLJSON=$CURLJSON" >>"$GITHUB_ENV"
9799
98100 # selectively append `--creds` to commands that need it
99101 read -ra ARGS_SPLIT <<< "$CMDARGS"
@@ -113,7 +115,7 @@ runs:
113115 run : |
114116 # Resolve download URL for latest
115117 URL=$(\
116- $CURL -L https://api.github.com/repos/StackExchange/dnscontrol/releases/latest \
118+ $CURLJSON -L https://api.github.com/repos/StackExchange/dnscontrol/releases/latest \
117119 | jq -r '.assets[] | select(.name? | match("dnscontrol_*.*.*_linux_amd64.tar.gz$")) | .browser_download_url'\
118120 )
119121 echo "URL=$URL" >>"$GITHUB_ENV"
@@ -124,7 +126,7 @@ runs:
124126 run : |
125127 # Resolve download URL
126128 URL=$(\
127- $CURL -L https://api.github.com/repos/StackExchange/dnscontrol/releases \
129+ $CURLJSON -L https://api.github.com/repos/StackExchange/dnscontrol/releases \
128130 | jq -r ".[] | select(.tag_name == \"$DNSCONTROL_VERSION\") | .assets[] | select(.name? | match(\"dnscontrol_*.*.*_linux_amd64.tar.gz$\")) | .browser_download_url" \
129131 )
130132 echo "URL=$URL" >>"$GITHUB_ENV"
You can’t perform that action at this time.
0 commit comments