Skip to content

Ci composer json

Ci composer json #22

Workflow file for this run

name: Check
on:
#push:
# branches: ['main', '*.*.x']
#pull_request:
# paths:
# - composer.json
pull_request: ~
jobs:
composer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: composer.json
- uses: actions/github-script@v7
with:
script: |
console.log(require('./composer.json'));
await github.rest.repos.replaceAllTopics({
owner: context.repo.owner,
repo: context.repo.repo,
names: ,
}))
env:
GH_TOKEN: ${{ secrets.TYPHOON_REPO_ADMIN_TOKEN }}
#- run: |
# description="--description `jq .description composer.json`"
# topics=`jq '.keywords | map(ascii_downcase) | map(tojson) | map("--add-topic " + .) | join(" ")' composer.json -r`
# sh -c "gh repo edit typhoon-php/template $description $topics" sh