Skip to content

Commit beab2ed

Browse files
committed
rollback release when linux build fails
1 parent 06c853a commit beab2ed

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,15 @@ jobs:
106106
name: unix-${{ matrix.platform }}-pg${{ matrix.postgres-major-version }}-py${{ matrix.python-version }}
107107
path: dist
108108

109+
- name: Rollback Release on failure
110+
if: failure() && needs.create_release.outputs.id != ''
111+
continue-on-error: true
112+
uses: author/action-rollback@stable
113+
env:
114+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115+
with:
116+
release_id: ${{ needs.create_release.outputs.id }}
117+
109118
build_windows:
110119
runs-on: windows-2019
111120
needs: create_release

0 commit comments

Comments
 (0)