Merge pull request #1901 from Cihatata/workflow-use-require

fix: use require
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-03-10 14:36:43 -07:00
commit 18b3419026
2 files changed
+3 -5

No files matched your search

+1 -4
View File
@@ -1,10 +1,7 @@
import axios from 'axios';
import fs from 'fs-extra';
import path from 'path';
import { fileURLToPath } from 'url';
// Get current directory
const __filename = fileURLToPath(import.meta.url);
import { URLSearchParams } from 'url';
// POEditor API information
const API_TOKEN = process.env.POEDITOR_API;
+2 -1
View File
@@ -40,6 +40,7 @@ jobs:
"name": "poeditor-scripts",
"version": "1.0.0",
"private": true,
"type": "module",
"dependencies": {
"axios": "^1.6.0",
"fs-extra": "^11.1.1"
@@ -54,7 +55,7 @@ jobs:
- name: Download translations from POEditor
env:
POEDITOR_API_TOKEN: ${{ secrets.POEDITOR_API_TOKEN }}
POEDITOR_API_TOKEN: ${{ secrets.POEDITOR_API }}
POEDITOR_PROJECT_ID: ${{ secrets.POEDITOR_PROJECT_ID }}
LANGUAGES: ${{ github.event.inputs.languages || 'tr,en' }}
EXPORT_FORMAT: ${{ github.event.inputs.format || 'key_value_json' }}