Skip to content

Update Verified Programs #97

Update Verified Programs

Update Verified Programs #97

name: Update Verified Programs
on:
schedule:
- cron: "0 8 * * *" # Daily at 8 AM UTC
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Read .nvmrc
id: nvmrc
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT
- name: Setup pnpm and Node.js
uses: ./.github/actions/pnpm-setup
with:
node-version: ${{ steps.nvmrc.outputs.NODE_VERSION }}
- name: Fetch verified programs
env:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
run: pnpm exec tsx scripts/update-verified-programs.ts
- name: Create or update pull request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
sign-commits: true
commit-message: "chore: update verified programs list"
title: "chore: update verified programs list"
body: "Automated daily update of verified programs from OSecure."
branch: "chore/update-verified-programs"
base: master
add-paths: public/verified-programs.json
maintainer-can-modify: true
delete-branch: true