Skip to content

Commit

Permalink
Force to update readme and meta.json if action is called manually
Browse files Browse the repository at this point in the history
  • Loading branch information
modos189 committed Jul 13, 2024
1 parent 40c8611 commit 3ca16f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/check-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches:
- master
workflow_dispatch:

jobs:
deploy:
Expand All @@ -30,6 +31,10 @@ jobs:
sudo apt install git-restore-mtime
git restore-mtime
- name: Set force environment variable if manually triggered
if: github.event_name == 'workflow_dispatch'
run: echo "FORCE_RENDER=true" >> $GITHUB_ENV

- name: Update plugins list
run: npm run update-all
working-directory: ./tools
Expand Down
2 changes: 1 addition & 1 deletion tools/update-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {render_readme, make_plugins_json, run_update} from './actions.js';
import {get_all_metadata_files} from './helpers.js';

const metadata_files = get_all_metadata_files();
if (await run_update(metadata_files)) {
if (await run_update(metadata_files) || process.env.FORCE_RENDER !== undefined) {
render_readme().then();
make_plugins_json().then();
}

0 comments on commit 3ca16f6

Please sign in to comment.