Β» πΏβ’ Fordy-RR Riivolution Builder #4606
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
| name: Β» πΏβ’ Fordy-RR Riivolution Builder | |
| on: | |
| schedule: | |
| - cron: '*/5 * * * *' | |
| workflow_dispatch: | |
| jobs: | |
| check-and-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: π₯ Checkout Riivolution Branch | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: Riivolution | |
| - name: π Check Version & Changelog | |
| id: check | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| API_DATA=$(curl -s https://api.heyfordy.dev/rr_app/version-rr) | |
| REMOTE_VERSION=$(echo "$API_DATA" | jq -r '.version') | |
| REMOTE_CHANGELOG=$(echo "$API_DATA" | jq -r '.changelog') | |
| TAG_NAME="RR-riivo_${REMOTE_VERSION}" | |
| echo "version=$REMOTE_VERSION" >> $GITHUB_OUTPUT | |
| echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT | |
| echo "changelog<<EOF" >> $GITHUB_OUTPUT | |
| echo "$REMOTE_CHANGELOG" >> $GITHUB_OUTPUT | |
| echo "EOF" >> $GITHUB_OUTPUT | |
| if ! gh release view "$TAG_NAME" > /dev/null 2>&1; then | |
| echo "run_build=true" >> $GITHUB_OUTPUT | |
| else | |
| CURRENT_BODY=$(gh release view "$TAG_NAME" --json body -q .body) | |
| if [[ "$CURRENT_BODY" == *"No changelog released yet"* ]] && [[ "$REMOTE_CHANGELOG" != "No changelog released yet" ]]; then | |
| echo "update_changelog=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "run_build=false" >> $GITHUB_OUTPUT | |
| fi | |
| fi | |
| - name: π οΈ Setup Tools & Env | |
| if: steps.check.outputs.run_build == 'true' | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y -qq wget unzip zip perl libarchive-tools | |
| chmod +x wszst/wszst | |
| chmod +x wszst/wbmgt | |
| chmod +x builder/fordy-riivo.sh | |
| echo "${{ github.workspace }}/wszst" >> $GITHUB_PATH | |
| - name: ποΈ Run Build Script | |
| if: steps.check.outputs.run_build == 'true' | |
| run: | | |
| ./builder/fordy-riivo.sh "${{ steps.check.outputs.version }}" | |
| - name: π Create or Update Release | |
| if: steps.check.outputs.run_build == 'true' || steps.check.outputs.update_changelog == 'true' | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ steps.check.outputs.tag_name }} | |
| name: πΏ Fordy-RR β’ Riivolution (${{ steps.check.outputs.version }}) | |
| files: | | |
| Fordy-RR-*.zip | |
| UPDATE-Fordy-RR-*.zip | |
| LANG_ONLY-Fordy-RR-*.zip | |
| fail_on_unmatched_files: false | |
| target_commitish: Riivolution | |
| body: | | |
| πΏ **Auto-Generated Custom Build** | |
| Based on Retro Rewind `v${{ steps.check.outputs.version }}` | |
| **RR Changelog:** | |
| ``` | |
| ${{ steps.check.outputs.changelog }} | |
| ``` | |
| **Custom changes:** | |
| ``` | |
| Modified some .bmg files within the "Language"-folder | |
| to match my personal "MyStuff" custom characters: | |
| - ποΈ Mach-Bike -> KFC-Mofa | |
| - π€ Daisy (Schwarz/TΓΌrkis) / ds-1 -> Steve | |
| ``` | |
| [β¬οΈ **Full** Download (First Install / Re-Install)](https://api.heyfordy.dev/dl?rr_full) | |
| [β¬οΈ Download **Update-only**](https://api.heyfordy.dev/dl?rr_patch) | |
| [β¬οΈ Download MyStuff](https://api.heyfordy.dev/dl?rr_mystuff) | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |