Generate log file #4163
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
name: Generate log file | |
on: | |
schedule: | |
- cron: '0 */8 * * *' # Every 8 hours update player list and correct names in DB | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Correct names in DB | |
run: | | |
chmod 755 helper-scripts/KeyCheck.sh && ./helper-scripts/KeyCheck.sh | |
chmod 755 NameCorrection.php && ./NameCorrection.php ${{ secrets.GM_MYSQL_HOST }} ${{ secrets.GM_MYSQL_DB_IN_USE }} ${{ secrets.GM_MYSQL_USER }} ${{ secrets.GM_MYSQL_PASS }} ${{ secrets.STEAM_WEB_API }} | |
- name: Scout out missing aliases not yet in data::$player_aliases | |
run: | | |
chmod 755 MissingAliases.php && ./MissingAliases.php ${{ secrets.GM_MYSQL_HOST }} ${{ secrets.GM_MYSQL_DB_IN_USE }} ${{ secrets.GM_MYSQL_USER }} ${{ secrets.GM_MYSQL_PASS }} ${{ secrets.STEAM_WEB_API }} | |
- name: Generate the json files for drop-down menus | |
run: | | |
chmod 755 GenerateJSONFile.php && ./GenerateJSONFile.php ${{ secrets.GM_MYSQL_HOST }} ${{ secrets.GM_MYSQL_DB_IN_USE }} ${{ secrets.GM_MYSQL_USER }} ${{ secrets.GM_MYSQL_PASS }} ${{ secrets.STEAM_WEB_API }} | |
#- name: run gasconfigs script | |
# run: | | |
# chmod 755 GasConfigs.php && ./GasConfigs.php ${{ secrets.GM_MYSQL_HOST }} ${{ secrets.GM_MYSQL_DB_IN_USE }} ${{ secrets.GM_MYSQL_USER }} ${{ secrets.GM_MYSQL_PASS }} ${{ secrets.STEAM_WEB_API }} | |
- name: Commit files | |
run: | | |
git config user.name 'github-actions[bot]' | |
git config user.email 'github-actions[bot]@users.noreply.github.com' | |
git add . | |
git commit -m "auto-update" | |
- name: Push changes # push the output folder to your repo | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
force: true |