Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikvirendrar authored Nov 27, 2023
1 parent aab6ff3 commit 3f78810
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,4 @@ jobs:
- name: Add config variable
run: |
API_JS_PATH=Indic-Input-Tool-UI/js/api.js
ls -R $API_JS_PATH
if [ -f "$API_JS_PATH" ]; then
sed -i "1s|^|const config = { TRANSLITERATE_API: \"\${{ secrets.API_URL }}\", API_KEY: \"\${{ secrets.API_KEY }}\" };\n|" $API_JS_PATH
else
echo "api.js file not found"
exit 1
fi
sed -i "1s|^|const config = { TRANSLITERATE_API: \"\${{ secrets.API_URL }}\", API_KEY: \"\${{ secrets.API_KEY }}\" };\n|" $API_JS_PATH

0 comments on commit 3f78810

Please sign in to comment.