Update changelog with new revision details #1892
This file contains hidden or 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
| # | |
| # ACCESS_TOKEN - Personal Access Token with "public_repo" permission | |
| # If there is a change to rusefi/rusefi_documentation, this action merges it to rusefi/rusefi/wiki | |
| # | |
| # the opposite merge is implemented as https://github.com/rusefi/rusefi/blob/master/.github/workflows/sync-wiki.yaml | |
| # | |
| name: Sync Wiki3 | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.actor != 'actions-user' }} | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@v5 | |
| - name: Install Prerequisites | |
| run: | | |
| sudo apt update | |
| sudo apt install sshpass | |
| bash ./wiki-tools/install.sh | |
| - name: Generate static pages | |
| run: | | |
| bash ./wiki-tools/run.sh | |
| - name: Set SSH variables | |
| env: | |
| ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
| run: | | |
| if [ "${{github.ref}}" = "refs/heads/master" ]; then | |
| echo "::set-env name=RUSEFI_SSH_SERVER::${{secrets.RUSEFI_SSH_SERVER}}"; | |
| echo "::set-env name=RUSEFI_SSH_USER::${{secrets.RUSEFI_SSH_USER}}"; | |
| echo "::set-env name=RUSEFI_SSH_PASS::${{secrets.RUSEFI_SSH_PASS}}"; | |
| fi | |
| - name: Upload static results to wiki3 | |
| run: | | |
| cd generator/ | |
| if [ -n "$RUSEFI_SSH_SERVER" ]; then | |
| echo "Uploading Wiki" | |
| tar -czf - wiki | sshpass -p "$RUSEFI_SSH_PASS" ssh -o StrictHostKeyChecking=no "$RUSEFI_SSH_USER"@"$RUSEFI_SSH_SERVER" "tar -xzf - -C docs" | |
| fi | |
| [ $? -eq 0 ] || { echo "upload FAILED"; exit 1; } |