⬆️ (deps) [email protected] 🔺 [skip ci] #3943
Workflow file for this run
This file contains 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: ' ▶️ Pull' | |
on: | |
pull_request: | |
branches: | |
- main | |
# # prerelease | |
# - canary | |
# - develop | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
# - converted_to_draft | |
concurrency: | |
group: pull-${{ github.ref }}-1 | |
cancel-in-progress: true | |
env: | |
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }} | |
GH_DEPLOY_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }} | |
GH_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }} | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
NEXT_PUBLIC__FATHOM_SITE_ID: ${{ secrets.NEXT_PUBLIC__FATHOM_SITE_ID }} | |
NEXT_PUBLIC__SITE: ${{ vars.NEXT_PUBLIC__SITE }} | |
NEXT_TELEMETRY_DISABLED: ${{ vars.NEXT_TELEMETRY_DISABLED }} | |
NOTION__DATABASE__BLOG: ${{ secrets.NOTION__DATABASE__BLOG }} | |
NOTION__DATABASE__BOOKS: ${{ secrets.NOTION__DATABASE__BOOKS }} | |
NOTION__DATABASE__EPISODES: ${{ secrets.NOTION__DATABASE__EPISODES }} | |
NOTION__DATABASE__EVENTS: ${{ secrets.NOTION__DATABASE__EVENTS }} | |
NOTION__DATABASE__PAGES: ${{ secrets.NOTION__DATABASE__PAGES }} | |
NOTION__DATABASE__PEOPLE: ${{ secrets.NOTION__DATABASE__PEOPLE }} | |
NOTION__DATABASE__PODCASTS: ${{ secrets.NOTION__DATABASE__PODCASTS }} | |
NOTION__DATABASE__SHOWS: ${{ secrets.NOTION__DATABASE__SHOWS }} | |
NOTION__DATABASE__VENUES: ${{ secrets.NOTION__DATABASE__VENUES }} | |
NOTION_API_KEY: ${{ secrets.NOTION_API_KEY }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
OCTOKIT_TOKEN: ${{ secrets.OCTOKIT_TOKEN }} | |
OG_API_KEY: ${{ secrets.OG_API_KEY }} | |
PREVIEW_TOKEN: ${{ secrets.PREVIEW_TOKEN }} | |
REVALIDATE_TOKEN: ${{ secrets.REVALIDATE_TOKEN }} | |
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }} | |
SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }} | |
SPOTIFY_REFRESH_TOKEN: ${{ secrets.SPOTIFY_REFRESH_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
UPSTASH_REDIS_REST_TOKEN: ${{ secrets.UPSTASH_REDIS_REST_TOKEN }} | |
UPSTASH_REDIS_REST_URL: ${{ secrets.UPSTASH_REDIS_REST_URL }} | |
VERCEL_ENV: ${{ vars.VERCEL_ENV }} | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
jobs: | |
pull: | |
name: '👷️ CI' | |
if: ${{ github.event.pull_request.draft == false && !contains(github.event.head_commit.message, '[skip ci]') }} | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
env: | |
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }} | |
GH_DEPLOY_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }} | |
GH_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }} | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
NEXT_PUBLIC__FATHOM_SITE_ID: ${{ secrets.NEXT_PUBLIC__FATHOM_SITE_ID }} | |
NEXT_PUBLIC__SITE: ${{ vars.NEXT_PUBLIC__SITE }} | |
NEXT_TELEMETRY_DISABLED: ${{ vars.NEXT_TELEMETRY_DISABLED }} | |
NOTION__DATABASE__BLOG: ${{ secrets.NOTION__DATABASE__BLOG }} | |
NOTION__DATABASE__BOOKS: ${{ secrets.NOTION__DATABASE__BOOKS }} | |
NOTION__DATABASE__EPISODES: ${{ secrets.NOTION__DATABASE__EPISODES }} | |
NOTION__DATABASE__EVENTS: ${{ secrets.NOTION__DATABASE__EVENTS }} | |
NOTION__DATABASE__PAGES: ${{ secrets.NOTION__DATABASE__PAGES }} | |
NOTION__DATABASE__PEOPLE: ${{ secrets.NOTION__DATABASE__PEOPLE }} | |
NOTION__DATABASE__PODCASTS: ${{ secrets.NOTION__DATABASE__PODCASTS }} | |
NOTION__DATABASE__SHOWS: ${{ secrets.NOTION__DATABASE__SHOWS }} | |
NOTION__DATABASE__VENUES: ${{ secrets.NOTION__DATABASE__VENUES }} | |
NOTION_API_KEY: ${{ secrets.NOTION_API_KEY }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
OCTOKIT_TOKEN: ${{ secrets.OCTOKIT_TOKEN }} | |
OG_API_KEY: ${{ secrets.OG_API_KEY }} | |
PREVIEW_TOKEN: ${{ secrets.PREVIEW_TOKEN }} | |
REVALIDATE_TOKEN: ${{ secrets.REVALIDATE_TOKEN }} | |
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }} | |
SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }} | |
SPOTIFY_REFRESH_TOKEN: ${{ secrets.SPOTIFY_REFRESH_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
UPSTASH_REDIS_REST_TOKEN: ${{ secrets.UPSTASH_REDIS_REST_TOKEN }} | |
UPSTASH_REDIS_REST_URL: ${{ secrets.UPSTASH_REDIS_REST_URL }} | |
VERCEL_ENV: ${{ vars.VERCEL_ENV }} | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
IS_ACTOR_VERIFIED: ${{ github.actor == 'jeromefitz' || github.actor == 'renovate[bot]' }} | |
steps: | |
- name: '🐙️ Checkout' | |
id: pull-checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
fetch-depth: 1 | |
- name: '💽️ Init' | |
id: pull-init | |
uses: JeromeFitz/websites/.github/actions/init@main | |
- name: '📦 Install' | |
id: pull-install | |
uses: JeromeFitz/websites/.github/actions/install@main | |
- name: '🔺️ Cache (vercel)' | |
id: pull-cache-vercel | |
uses: JeromeFitz/websites/.github/actions/cache-turbo@main | |
with: | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
VERCEL_ENV: ${{ vars.VERCEL_ENV }} | |
- name: '🚨️ Lint' | |
id: pull-lint | |
uses: JeromeFitz/websites/.github/actions/lint@main | |
with: | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
- name: '🧪 Test' | |
id: pull-test | |
uses: JeromeFitz/websites/.github/actions/test@main | |
with: | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
WEBSITE: 'jeromefitzgerald.com' | |
# https://docs.github.com/en/actions/learn-github-actions/expressions | |
- name: '📛 Commit Message' | |
id: pull-commit-message | |
run: | | |
echo "message=$(git log --no-merges -1 --oneline)" >> $GITHUB_OUTPUT | |
- name: '🎭 E2E' | |
id: pull-e2e | |
if: ${{ contains(steps.pull-commit-message.outputs.message, '[b]') }} | |
uses: JeromeFitz/websites/.github/actions/e2e@main | |
with: | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
VERCEL_ENV: ${{ vars.VERCEL_ENV }} | |
WEBSITE: 'jeromefitzgerald.com' | |
- name: '🛠️ Deploy (Config)' | |
id: pull-deploy-config | |
if: ${{ contains(steps.pull-commit-message.outputs.message, '[b]') }} | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
core.setOutput('ref', context.payload.pull_request.head.ref) | |
core.setOutput('repo', context.payload.pull_request.head.repo.full_name) | |
# @note(gh-actions) | |
# I believe we need to `save/cache@3` for `.turbo-cache` | |
# before this step. For some reason I think it is getting | |
# cleared out when we re-pull a Checkout | |
# | |
# Now issue here is without this re-pull of Checkout I believe | |
# we do not pass Vercel the info it needs to determine if | |
# it needs to run the full build again. We shall see. | |
# | |
# | |
################################# | |
# - name: '🐙️ Deploy (Checkout)' | |
# id: pull-deploy-checkout | |
# uses: actions/checkout@v4 | |
# if: ${{ (env.IS_ACTOR_VERIFIED == 'true') && contains(steps.pull-commit-message.outputs.message, '[b]') }} | |
# with: | |
# ref: ${{ steps.pull-deploy-config.outputs.ref }} | |
# repository: ${{ steps.pull-deploy-config.outputs.repo }} | |
# fetch-depth: 1 | |
- name: '🔺️ Deploy (Preview)' | |
id: pull-deploy-preview | |
if: ${{ (env.IS_ACTOR_VERIFIED == 'true') && contains(steps.pull-commit-message.outputs.message, '[b]') }} | |
uses: JeromeFitz/websites/.github/actions/deploy@main | |
with: | |
DEPLOY_PR_FROM_FORK: true | |
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }} | |
PRODUCTION: false | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} |