Skip to content

Merge pull request #65 from koddsson/dependabot/npm_and_yarn/eslint-8… #64

Merge pull request #65 from koddsson/dependabot/npm_and_yarn/eslint-8…

Merge pull request #65 from koddsson/dependabot/npm_and_yarn/eslint-8… #64

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
});