Skip to content

Commit

Permalink
CI: add manual resolve command for pi-apps-analytics.net
Browse files Browse the repository at this point in the history
workaround for crappy inconsistent dns used in github actions https://github.com/Botspot/pi-apps/actions/runs/7769009646/job/21187587645#step:3:69
  • Loading branch information
theofficialgman committed Feb 3, 2024
1 parent 8daaa82 commit 4e005ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/create_shlink_links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
SHLINK_KEY: ${{ secrets.SHLINK_KEY }}
run: |
# get all available URLs
curl -X 'GET' \
curl -X 'GET' --resolve pi-apps-analytics.linkpc.net:443:132.145.164.141 \
'https://pi-apps-analytics.linkpc.net/rest/v2/short-urls?itemsPerPage=0' \
-H 'accept: application/json' \
-H "X-Api-Key: $SHLINK_KEY"
online_shortcodes="$(curl -s -X 'GET' \
online_shortcodes="$(curl -s -X 'GET' --resolve pi-apps-analytics.linkpc.net:443:132.145.164.141 \
'https://pi-apps-analytics.linkpc.net/rest/v2/short-urls?itemsPerPage=0' \
-H 'accept: application/json' \
-H "X-Api-Key: $SHLINK_KEY" | jq -r '( .shortUrls | .data | .[] | .shortCode )')"
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
for shortcode in $new_shortcodes ;do
echo "Creating missing shortcode: $shortcode"
curl -s -X 'POST' \
'https://pi-apps-analytics.linkpc.net/rest/v2/short-urls' \
'https://pi-apps-analytics.linkpc.net/rest/v2/short-urls' --resolve pi-apps-analytics.linkpc.net:443:132.145.164.141 \
-H 'accept: application/json' \
-H "X-Api-Key: $SHLINK_KEY" \
-H 'Content-Type: application/json' \
Expand Down

0 comments on commit 4e005ac

Please sign in to comment.