Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/curl-install-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
on:
workflow_dispatch:
inputs:
dryrun:
description: 'Skip PagerDuty alert on failure'
type: boolean
default: true
schedule:
- cron: '*/10 * * * *' # Every 10 minutes
name: Curl install test
permissions:
contents: read
jobs:
curl-install-macos:
runs-on: macos-latest
steps:
- run: |
curl -sSL https://raw.githubusercontent.com/stripe/stripe-cli/master/scripts/install.sh | sh
export PATH="$HOME/.stripe/bin:$PATH"
stripe --version

curl-install-linux:
runs-on: ubuntu-latest
steps:
- run: |
curl -sSL https://raw.githubusercontent.com/stripe/stripe-cli/master/scripts/install.sh | sh
export PATH="$HOME/.stripe/bin:$PATH"
stripe --version

notify:
runs-on: ubuntu-latest
needs: [curl-install-macos, curl-install-linux]
if: always()
steps:
- uses: actions/checkout@v6
with:
sparse-checkout: |
scripts/notify.sh
sparse-checkout-cone-mode: false
- run: bash scripts/notify.sh
env:
OVERALL_RESULT: ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
PAGERDUTY_INTEGRATION_KEY: ${{ secrets.PAGERDUTY_INTEGRATION_KEY }}
PAGERDUTY_DEDUP_KEY: gh-actions-stripe-cli-curl-install-test
PAGERDUTY_SUMMARY: "Failed to install Stripe CLI via curl install script. Investigate here: https://github.com/stripe/stripe-cli/actions/workflows/curl-install-test.yml"
PAGERDUTY_RESOLVE_SUMMARY: "Stripe CLI curl install script is passing again"
PAGERDUTY_SEVERITY: critical
DRYRUN: "true" # TODO: switch to ${{ inputs.dryrun }} once confirmed stable
3 changes: 2 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/sh
set -euo pipefail
set -eu

INSTALL_DIR="${STRIPE_INSTALL_DIR:-$HOME/.stripe/bin}"
GITHUB_REPO="stripe/stripe-cli"
NEEDS_SOURCE=false

main() {
detect_platform
Expand Down
Loading