forked from gamer-project/gamer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mac_updates
* main: (430 commits) Minor Minor Add comments Add execute premission check Bugfix string length Apply suggestions from code review [Workflow] Update all parameters wiki page Update output format Update description Load Opt__Output_Text_Length_Int when restert Rename DUMP_DIR to OUTPUT_DIR [Workflow] Update all parameters wiki page Let OUTPUT_DIR shorter Add file premission check Fix file path Remove useless variable Fix Input__Note output Update missed filename Rename DUMP_DIR to OUTPUT_DIR Apply suggestions from code review ...
- Loading branch information
Showing
290 changed files
with
6,852 additions
and
3,059 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Update all parameters wiki page | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- 'example/test_problem/Template/Input__Parameter' | ||
- 'tool/wiki/sync_runtime_parameter.py' | ||
- 'src/Init/Init_Load_Parameter.cpp' | ||
|
||
env: | ||
GIT_AUTHOR_NAME: ${{ github.actor }} | ||
GIT_AUTHOR_EMAIL: ${{ secrets.MY_EMAIL }} | ||
|
||
jobs: | ||
Update-all-parameters-page: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.TOKEN_FOR_WIKI }} | ||
- name: run script | ||
run: | | ||
cd tool/wiki | ||
python --version | ||
python sync_runtime_parameter.py | ||
- name: move markdown | ||
run: | | ||
mv tool/wiki/Runtime-Parameters:-All.md doc/wiki/Runtime-Parameters-related | ||
- name: set git config | ||
run: | | ||
git config --global user.email "${{env.GIT_AUTHOR_EMAIL}}" | ||
git config --global user.name "${{env.GIT_AUTHOR_NAME}}" | ||
- name: make a commit and push if the file changed | ||
run: | | ||
git diff --exit-code doc/wiki/Runtime-Parameters-related/Runtime-Parameters:-All.md || \ | ||
( git add doc/wiki/Runtime-Parameters-related/Runtime-Parameters:-All.md && \ | ||
git commit -m "[Workflow] Update all parameters wiki page" && \ | ||
git push ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.