Skip to content

feat: World ID 2.0

feat: World ID 2.0 #80

Workflow file for this run

name: Repositories sync
on:
pull_request:
paths:
- 'SHARED-README.md'
- 'repositories.json'
- 'sync.ts'
jobs:
sync-local-repository:
name: Sync local README & repositories
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Node 18
uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Sync local README
run: npx ts-node sync.ts local
- name: Sync repository descriptions
run: npx ts-node sync.ts descriptions
- name: Commit changes to repository
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: sync shared README content
commit_options: '--no-verify --signoff'
file_pattern: README.md repositories.json
commit_author: GitHub Actions <[email protected]>