Skip to content

Commit 56bb510

Browse files
nomeataysangkok
authored andcommitted
Succeed if deps build fails
1 parent 22139f9 commit 56bb510

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/bump.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,27 +91,29 @@ jobs:
9191
echo "$DELIMITER" >> $GITHUB_ENV
9292
9393
- name: Build dependencies
94+
id: dependency-build
9495
if: env.CABAL_COUNT > 0
9596
shell: bash
97+
continue-on-error: true
9698
run: |
9799
cabal build --only-dependencies --enable-tests --write-ghc-environment-files=always ${{ env.CABAL_FLAGS }}
98100
99101
- name: Build local package
100-
if: env.CABAL_COUNT > 0
102+
if: env.CABAL_COUNT > 0 && steps.dependency-build.outcome == 'success'
101103
shell: bash
102104
run: |
103105
cabal build --enable-tests --write-ghc-environment-files=always ${{ env.CABAL_FLAGS }}
104106
cabal test ${{ env.CABAL_FLAGS }}
105107
106108
- name: Fetch cabal-plan-bounds
107-
if: env.CABAL_COUNT > 0
109+
if: env.CABAL_COUNT > 0 && steps.dependency-build.outcome == 'success'
108110
shell: bash
109111
run: |
110112
curl -L https://github.com/nomeata/cabal-plan-bounds/releases/latest/download/cabal-plan-bounds.linux.gz | gunzip > /usr/local/bin/cabal-plan-bounds
111113
chmod +x /usr/local/bin/cabal-plan-bounds
112114
113115
- name: Update .cabal file
114-
if: env.CABAL_COUNT > 0
116+
if: env.CABAL_COUNT > 0 && steps.dependency-build.outcome == 'success'
115117
shell: bash
116118
run: |
117119
# This line was added just for servant-swagger-ui, and counter-acts the default
@@ -122,7 +124,7 @@ jobs:
122124
123125
- name: Create Pull Request
124126
id: cpr
125-
if: env.CABAL_COUNT > 0
127+
if: env.CABAL_COUNT > 0 && steps.dependency-build.outcome == 'success'
126128
uses: peter-evans/create-pull-request@v5
127129
with:
128130
branch: "cabal-updates"

0 commit comments

Comments
 (0)