Skip to content

Commit

Permalink
replexica auth
Browse files Browse the repository at this point in the history
  • Loading branch information
maxprilutskiy committed Oct 7, 2024
1 parent ccbc89c commit 04e8cef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
- name: Run Replexica Action
uses: ./
with:
api-key: ${{ secrets.REPLEXICA_API_KEY }}
commit-message: 'feat: update some data'
pull-request: true
pull-request-title: 'feat: pr with some data updates'
env:
GH_TOKEN: ${{ github.token }}
REPLEXICA_API_KEY: ${{ secrets.REPLEXICA_API_KEY }}
7 changes: 7 additions & 0 deletions action/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ import loadOctokit from './instances/octokit.js';
execSync('npx replexica@latest i18n', { stdio: 'inherit' });
ora.succeed('Done doing stuff');

// Check if there are any changes made to the files
const changes = execSync('git status --porcelain').toString();
if (changes.length === 0) {
ora.info('Translations are up to date!');
return;
}

if (!config.isPullRequestMode) {
ora.info('Pull request mode is disabled');

Expand Down

0 comments on commit 04e8cef

Please sign in to comment.