Skip to content

Commit

Permalink
[EXPORT] update health-check workflow and path of export file
Browse files Browse the repository at this point in the history
  • Loading branch information
thaovt287 committed Jun 4, 2024
1 parent cf82b17 commit f2a9e62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/health-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ jobs:
node-version: '18'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies and build
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
STRAPI_TOKEN: ${{ secrets.STRAPI_TOKEN }}
STRAPI_URL: ${{ secrets.STRAPI_URL }}
- name: Install dependencies
run: |
yarn install
- name: Run scripts
run: |
yarn export-error-rpc
# - name: Commit changes
# - name: Commit changes
# uses: EndBug/add-and-commit@v9
# with:
# author_name: Github-Bot
Expand Down
4 changes: 2 additions & 2 deletions scripts/exports/export-error-rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ const getErrorRpc = async (chainInfo) => {
}

const writeFileSync = (data) => {
const fileName = `exports/error-rpc.json`
fs.mkdirSync('exports', {recursive: true})
const fileName = `./packages/chain-list-assets/public/exports/error-rpc.json`
fs.mkdirSync('./packages/chain-list-assets/public/exports', {recursive: true})
const jsonData = JSON.stringify(data, null, 2)

fs.writeFileSync(fileName, jsonData, function (err) {
Expand Down

0 comments on commit f2a9e62

Please sign in to comment.