feat: add frontend multi-source/sink support and tests #133
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Cleanup fal PR deployment | |
| on: | |
| pull_request: | |
| types: [closed] | |
| jobs: | |
| cleanup-on-close: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Delete fal PR apps | |
| env: | |
| FAL_KEY: ${{ secrets.FAL_KEY }} | |
| run: | | |
| set -euo pipefail | |
| PR_NUMBER=${{ github.event.pull_request.number }} | |
| pip install fal | |
| delete_preview_app() { | |
| APP_NAME="$1" | |
| echo "Deleting fal app ${APP_NAME}..." | |
| rc=0 | |
| output=$(fal apps delete --env preview "${APP_NAME}" 2>&1) || rc=$? | |
| echo "$output" | |
| # Ignore missing apps to make cleanup idempotent. | |
| lower_output=$(echo "$output" | tr '[:upper:]' '[:lower:]') | |
| if [ "$rc" -ne 0 ] && [[ "$lower_output" != *"not found"* ]]; then | |
| echo "::error::Failed to delete fal app ${APP_NAME}" | |
| exit 1 | |
| fi | |
| } | |
| delete_preview_app "scope-pr-${PR_NUMBER}" | |
| delete_preview_app "scope-livepeer-pr-${PR_NUMBER}" |