Skip to content

IL-2 CloD profile: updated profile and config #317

IL-2 CloD profile: updated profile and config

IL-2 CloD profile: updated profile and config #317

Workflow file for this run

on:
push:
branches:
- master
env:
JAVA_DISTRIBUTION: zulu
JAVA_VERSION: 22.0.2+9
GRADLE_OPTS: -Dorg.gradle.daemon=false
jobs:
pages:
runs-on: ubuntu-latest
steps:
- name: Checkout ControllerBuddy-Profiles
uses: actions/checkout@v4
with:
path: ControllerBuddy-Profiles
fetch-depth: 0
persist-credentials: false
- name: Checkout ControllerBuddy
uses: actions/checkout@v4
with:
repository: bwRavencl/ControllerBuddy
path: ControllerBuddy
fetch-depth: 0
persist-credentials: false
submodules: true
- name: Checkout ControllerBuddy-Pages
uses: actions/checkout@v4
with:
repository: bwRavencl/ControllerBuddy-Pages
path: ControllerBuddy-Pages
fetch-depth: 0
persist-credentials: false
- name: Install JDK
uses: actions/setup-java@v4
with:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
- name: Install ControllerBuddy
working-directory: ControllerBuddy
run: ./gradlew installDist
- name: Update Visualizations
timeout-minutes: 7
run: |
rm -f ControllerBuddy-Pages/profiles/*.html
xvfb-run -a -s '-screen 0 1024x768x24' ./ControllerBuddy/build/install/ControllerBuddy/bin/ControllerBuddy -skipMessageDialogs &
sleep 3
for file in ControllerBuddy-Profiles/*.json
do
xvfb-run -a -s '-screen 0 1024x768x24' ./ControllerBuddy/build/install/ControllerBuddy/bin/ControllerBuddy -skipMessageDialogs -profile "$file" -export "ControllerBuddy-Pages/profiles/$(basename "$file" .json).html"
done
xvfb-run -a -s '-screen 0 1024x768x24' ./ControllerBuddy/build/install/ControllerBuddy/bin/ControllerBuddy -quit
- name: Commit files
working-directory: ControllerBuddy-Pages
run: |
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
git config --local user.name 'github-actions[bot]'
git add profiles
git commit -m 'Updated profile visualizations' || echo 'Nothing to update'
- name: Push changes
uses: ad-m/github-push-action@master
with:
repository: bwRavencl/ControllerBuddy-Pages
directory: ControllerBuddy-Pages
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}