Skip to content

add a debug mode

add a debug mode #72

name: Update metadata
on:
push:
branches: [ "main" ]
permissions: write-all
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/github-script@v6
with:
script: |
const {readFileSync} = require('node:fs')
const package = JSON.parse(readFileSync('./package.json'))
const {owner, repo} = context.repo
const {description, homepage, keywords} = package
github.rest.repos.update({
owner,
repo,
description,
homepage,
});
github.rest.repos.replaceAllTopics({
owner,
repo,
names: keywords
});