Skip to content

Merge pull request #69 from koddsson/dependabot/npm_and_yarn/postcss-… #62

Merge pull request #69 from koddsson/dependabot/npm_and_yarn/postcss-…

Merge pull request #69 from koddsson/dependabot/npm_and_yarn/postcss-… #62

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