Skip to content

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

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

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

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