Content-Length: 198762 | pFad | http://github.com/nodejs/bluesky/actions/runs/13700609023/workflow

5B repost SEA revival post · nodejs/bluesky@9cebb8f · GitHub
Skip to content

repost SEA revival post #101

repost SEA revival post

repost SEA revival post #101

Workflow file for this run

name: Validate newly added JSON
on:
pull_request:
types:
- opened
- ready_for_review
- reopened
- synchronize
paths:
- records/new/*.json
permissions:
contents: read
jobs:
validate-json:
# Only run if the PR is from a branch in the main repo, otherwise skip it.
# There can be a separate, local validation that runs for PRs from forks.
# https://github.com/nodejs/bluesky/issues/10
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
ref: refs/pull/${{ github.event.pull_request.number }}/merge
persist-credentials: false
# Must be done before setup-node.
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "yarn"
cache-dependency-path: actions/yarn.lock
- name: Install Dependencies
run: yarn install --frozen-lockfile
working-directory: ./actions
- name: Find newly added JSON files
id: find-json
run: |
# Get the list of added JSON files in the records/new/ directory
ADDED_FILES=$(git diff -z HEAD^..HEAD --diff-filter=A --name-only records/new | jq -crRs 'split("\u0000") | map(select(endswith(".json"))) | @sh' || true)
echo "NEW_JSON_FILES=$ADDED_FILES" >> "$GITHUB_OUTPUT"
- name: Validate files
if: steps.find-json.outputs.NEW_JSON_FILES
env:
BLUESKY_IDENTIFIER_NODEJS_ORG: nodejs.org
BLUESKY_APP_PASSWORD_NODEJS_ORG: ${{ secrets.BLUESKY_APP_PASSWORD_NODEJS_ORG }}
run: |
for file in ${{ steps.find-json.outputs.NEW_JSON_FILES }}; do
echo "Processing $file..."
node actions/login-and-validate.js "$file"
done








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/nodejs/bluesky/actions/runs/13700609023/workflow

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy