From b7d8524bd2738b12e26d3a6f172957c7d028ea09 Mon Sep 17 00:00:00 2001 From: SuddyN Date: Wed, 13 May 2026 11:42:27 -0400 Subject: [PATCH] revert action behavior --- .github/workflows/build_prerelease.yml | 36 +++++++++----------------- 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build_prerelease.yml b/.github/workflows/build_prerelease.yml index de1e00a761..00e2415e60 100644 --- a/.github/workflows/build_prerelease.yml +++ b/.github/workflows/build_prerelease.yml @@ -1,12 +1,8 @@ name: build_prerelease on: - workflow_dispatch: - inputs: - romfs_version: - type: string - description: 'The romfs version tag to use' - required: true - default: 'latest' + push: + branches: + - dev jobs: # bump the version and build the changelog @@ -18,18 +14,16 @@ jobs: version: ${{ steps.push_tag.outputs.version }} changelog: ${{ steps.github_changelog.outputs.changelog }} steps: + # fail out if this is not a merge commit + - name: ensure merge + if: ${{ !startsWith(github.event.head_commit.message, 'Merge') }} + run: exit 1 + - name: checkout version uses: actions/checkout@v6.0.2 with: fetch-depth: 0 - # fail out if this is not a merge commit - - name: ensure merge - run: | - if ! git log -1 --pretty=%s | grep -q "^Merge"; then - exit 1 - fi - - name: get last merge id: last_merge shell: bash @@ -174,16 +168,10 @@ jobs: uses: actions/checkout@v6.0.2 - id: romfs_version - shell: bash - run: | - if [ "${{ inputs.romfs_version }}" = "latest" ]; then - RELEASE=$(curl -s -H "Authorization: Bearer ${{ secrets.RELEASE_TOKEN }}" \ - https://api.github.com/repos/HDR-Development/romfs-release/releases/latest \ - | python3 -c "import sys,json; print(json.load(sys.stdin)['tag_name'])") - echo "release=$RELEASE" >> $GITHUB_OUTPUT - else - echo "release=${{ inputs.romfs_version }}" >> $GITHUB_OUTPUT - fi + uses: pozetroninc/github-action-get-latest-release@master + with: + token: ${{ secrets.RELEASE_TOKEN }} + repository: HDR-Development/romfs-release - name: Download romfs id: get_romfs