From f2797730f705558570a1b8940efdde5b22ff1615 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Tue, 10 Nov 2026 20:23:32 +0000 Subject: [PATCH] Fix Photos CI formatting and restore the portfolio link --- .forgejo/workflows/deploy.yml | 15 ++++++++------- package.json | 2 +- src/index.html | 1 + src/index.scss | 22 +++++++++++++++++++--- 4 files changed, 29 insertions(+), 11 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 30893ea..317b6cd 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -7,12 +7,10 @@ on: branches: ['main'] workflow_dispatch: -permissions: - contents: read - jobs: validate: - runs-on: ${{ (github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref, 'refs/heads/renovate/') || startsWith(github.head_ref, + runs-on: + ${{ (github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref, 'refs/heads/renovate/') || startsWith(github.head_ref, 'renovate/')) && 'renovate' || 'docker' }} # Superseded validation runs can be cancelled freely. concurrency: @@ -48,13 +46,16 @@ jobs: - name: End-to-end smoke test run: npm run test:e2e - if: ${{ contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.actor) && (!github.event.pull_request || contains(fromJSON('["andras","ruby336688","renovate-bot"]'), + if: + ${{ contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.actor) && (!github.event.pull_request || contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.event.pull_request.user.login)) }} deploy: - runs-on: ${{ (github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref, 'refs/heads/renovate/') || startsWith(github.head_ref, + runs-on: + ${{ (github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref, 'refs/heads/renovate/') || startsWith(github.head_ref, 'renovate/')) && 'renovate' || 'docker' }} needs: validate - if: ${{ contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.actor) && (!github.event.pull_request || contains(fromJSON('["andras","ruby336688","renovate-bot"]'), + if: + ${{ contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.actor) && (!github.event.pull_request || contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.event.pull_request.user.login)) && (github.event_name == 'push' && github.ref == 'refs/heads/main') }} # Never cancel an in-flight deploy: rsync --delete must finish or the live # site can be left half-deleted. Newer deploys queue behind this one. diff --git a/package.json b/package.json index 12569c8..50a9115 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "dev": "node scripts/generate-assets.mjs && vite --host 0.0.0.0", "lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix && prettier --write .", - "lint:check": "node scripts/generate-assets.mjs && node scripts/check-image-metadata.mjs && tsc --noEmit && eslint . && stylelint \"src/**/*.scss\" && prettier --check .", + "lint:check": "prettier --check . && tsc --noEmit && eslint . && stylelint \"src/**/*.scss\" && node scripts/check-image-metadata.mjs && node scripts/generate-assets.mjs", "test": "vitest run", "test:e2e": "playwright test", "build": "node scripts/generate-assets.mjs && vite build" diff --git a/src/index.html b/src/index.html index 00e7388..03e092d 100644 --- a/src/index.html +++ b/src/index.html @@ -36,6 +36,7 @@