Skip to content

Commit

Permalink
Let action run wrangler deploy natively; Use default action output
Browse files Browse the repository at this point in the history
  • Loading branch information
glukki committed Jun 5, 2024
1 parent 79d45cf commit 33c165b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,9 @@ jobs:
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
command: --version
postCommands: |
output="$(npx wrangler deploy)"
echo "$output"
url=$(echo "$output" | grep -Ei '^\s*?https' | tail -n1)
echo "url=$url" >> $GITHUB_OUTPUT
command: deploy

- name: Check status
uses: srt32/uptime@master
with:
url-to-hit: ${{ steps.deploy.outputs.url }}/status
url-to-hit: ${{ steps.deploy.outputs.deployment-url }}/status

0 comments on commit 33c165b

Please sign in to comment.