diff --git a/.github/workflows/BlenderMalt.yml b/.github/workflows/BlenderMalt.yml index 6547e95f..e723ce3f 100644 --- a/.github/workflows/BlenderMalt.yml +++ b/.github/workflows/BlenderMalt.yml @@ -11,6 +11,15 @@ jobs: - uses: nelonoel/branch-name@v1.0.1 + - name: Rollback Release + uses: author/action-rollback@stable + continue-on-error: true + with: + tag: ${{ env.BRANCH_NAME }}-latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + if: ${{ github.ref_type == 'branch' }} + - uses: ncipollo/release-action@v1 id: create_release with: @@ -21,6 +30,15 @@ jobs: bodyFile: "SPONSORS.md" if: ${{ github.ref_type == 'branch' }} + - name: Rollback Tagged Release + uses: author/action-rollback@stable + continue-on-error: true + with: + tag: ${{ github.action_ref }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + if: ${{ github.ref_type == 'tag' }} + - uses: ncipollo/release-action@v1 id: create_tagged_release with: