Skip to content
Merged
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
15 changes: 13 additions & 2 deletions .github/workflows/token-exchange.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@
name: token-exchange

on:
workflow_dispatch: {}
workflow_dispatch:
inputs:
server:
description: Deadrop server to exchange the token against
type: choice
default: https://auth.carabiner.dev
options:
- https://auth.carabiner.dev
- https://auth.dev.carabiner.dev
pull_request:
branches: [ "main" ]
push:
Expand Down Expand Up @@ -33,4 +41,7 @@ jobs:
cache: true

- name: Log in exchanging the ambient actions token
run: go run ./cmd/deadrop login --server https://auth.carabiner.dev
# PR and push runs always test against prod; manual runs can choose
env:
DEADROP_SERVER: ${{ inputs.server || 'https://auth.carabiner.dev' }}
run: go run ./cmd/deadrop login --server "$DEADROP_SERVER"
Loading