Skip to content

Commit

Permalink
chore: changed commit step
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Oct 9, 2024
1 parent dfe1544 commit 931d715
Showing 1 changed file with 1 addition and 42 deletions.
43 changes: 1 addition & 42 deletions .github/workflows/update-configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 931d715

Please sign in to comment.