From 931d7159759073b68d53d5a93e91eb9f3a5bdb87 Mon Sep 17 00:00:00 2001 From: Mentlegen <9807008+gentlementlegen@users.noreply.github.com> Date: Thu, 10 Oct 2024 00:52:59 +0900 Subject: [PATCH] chore: changed commit step --- .github/workflows/update-configuration.yml | 43 +--------------------- 1 file changed, 1 insertion(+), 42 deletions(-) diff --git a/.github/workflows/update-configuration.yml b/.github/workflows/update-configuration.yml index b7210f6a..51ac0933 100644 --- a/.github/workflows/update-configuration.yml +++ b/.github/workflows/update-configuration.yml @@ -11,51 +11,10 @@ jobs: permissions: write-all steps: -# - uses: actions/checkout@v4 -# -# - name: Setup node -# uses: actions/setup-node@v4 -# with: -# node-version: "20.10.0" -# -# - name: Install deps and run configuration update -# run: | -# yarn install --immutable --immutable-cache --check-cache -# yarn tsc --noCheck --project tsconfig.json -m commonjs - - - uses: Meniole/action-update-manifest@main + - uses: ubiquity-os/action-update-manifest@main with: schema-path: "${{ github.workspace }}/src/types/plugin-inputs.js" commit-message: "chore: update" manifest-path: "${{ github.workspace }}/manifest.json" env: GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} -# -# - name: Update manifest configuration using GitHub Script -# uses: actions/github-script@v7 -# with: -# script: | -# const fs = require('fs'); -# const path = require('path'); -# -# const { pluginSettingsSchema } = require('./src/types/plugin-inputs'); -# -# const manifestPath = path.resolve("${{ github.workspace }}", './manifest.json'); -# const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8')); -# -# const configuration = JSON.stringify(pluginSettingsSchema); -# -# manifest["configuration"] = JSON.parse(configuration); -# -# const updatedManifest = JSON.stringify(manifest, null, 2) -# console.log('Updated manifest:', updatedManifest); -# fs.writeFileSync(manifestPath, updatedManifest); -# -# - name: Commit and Push generated types -# run: | -# yarn format:prettier -# git add ./manifest.json -# git pull -# -# - if: ${{ steps.commit.outputs.commit != null }} -# run: git push origin HEAD:${{ github.ref_name }}