Skip to content
Closed
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
30 changes: 30 additions & 0 deletions .github/workflows/validate-pr-base.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Validate PR base

on:
pull_request:
types: [opened, edited, reopened, synchronize, ready_for_review]

permissions:
contents: read

jobs:
validate-pr-base:
runs-on: ubuntu-latest
steps:
- name: Require staging base
env:
BASE_REF: ${{ github.base_ref }}
HEAD_REF: ${{ github.head_ref }}
run: |
if [ "$BASE_REF" = "staging" ]; then
exit 0
fi

if [ "$BASE_REF" = "main" ] && [ "$HEAD_REF" = "staging" ]; then
exit 0
fi

echo "PRs must target staging. Promotion PRs from staging to main are allowed."
echo "Current base: $BASE_REF"
echo "Current head: $HEAD_REF"
exit 1
2 changes: 1 addition & 1 deletion use-case-library-site/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ COPY --from=builder /app/bundle ./
RUN mkdir -p /data

# Smoke check that the runtime layout is correct before container starts taking traffic.
RUN node -e "require('node:fs').accessSync('./dist/index.js'); require('node:fs').accessSync('./dist/one-pager.html'); require('node:fs').accessSync('./public/index.html')"
RUN node -e "require('node:fs').accessSync('./dist/index.js'); require('node:fs').accessSync('./dist/one-pager.html'); require('node:fs').accessSync('./dist/ai-training-club-marketers-growth.html'); require('node:fs').accessSync('./public/index.html')"

HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
CMD wget -qO- "http://127.0.0.1:${PORT}/api/health" >/dev/null || exit 1
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion use-case-library-site/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"main": "dist/index.js",
"scripts": {
"build": "tsc -p tsconfig.json && cp src/one-pager.html dist/one-pager.html && cp src/how-to-build-the-brain.html dist/how-to-build-the-brain.html && cp src/how-to-prompt-masterfully.html dist/how-to-prompt-masterfully.html",
"build": "tsc -p tsconfig.json && cp src/one-pager.html dist/one-pager.html && cp src/how-to-build-the-brain.html dist/how-to-build-the-brain.html && cp src/how-to-prompt-masterfully.html dist/how-to-prompt-masterfully.html && cp src/ai-training-club-marketers-growth.html dist/ai-training-club-marketers-growth.html",
"start": "node dist/index.js",
"dev": "tsc -p tsconfig.json --watch & node --watch dist/index.js"
},
Expand Down
Loading
Loading