Skip to content

security: remove hardcoded OpenRouter API key, use env var OPENROUTER… #3

security: remove hardcoded OpenRouter API key, use env var OPENROUTER…

security: remove hardcoded OpenRouter API key, use env var OPENROUTER… #3

Workflow file for this run

name: Publish Deployment URL

Check failure on line 1 in .github/workflows/publish-url.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish-url.yml

Invalid workflow file

(Line: 17, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.DEPLOY_URL !=, (Line: 25, Col: 13): Unrecognized named-value: 'workflow_dispatch'. Located at position 22 within expression: github.event_name == workflow_dispatch && inputs.url !=
on:
workflow_dispatch:
inputs:
url:
description: "Deployment URL (e.g., https://your-app.example.com)"
required: false
push:
branches: [ main ]
jobs:
set-homepage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set repository homepage from DEPLOY_URL secret (if present)
if: ${{ secrets.DEPLOY_URL != }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEPLOY_URL: ${{ secrets.DEPLOY_URL }}
run: |
echo "Setting homepage to ${DEPLOY_URL}"
gh api -X PATCH repos/${{ github.repository }} -f homepage="${DEPLOY_URL}"
- name: Set homepage from manual input (workflow_dispatch)
if: ${{ github.event_name == workflow_dispatch && inputs.url != }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
URL_IN: ${{ inputs.url }}
run: |
echo "Setting homepage to ${URL_IN}"
gh api -X PATCH repos/${{ github.repository }} -f homepage="${URL_IN}"