@@ -91,27 +91,29 @@ jobs:
91
91
echo "$DELIMITER" >> $GITHUB_ENV
92
92
93
93
- name : Build dependencies
94
+ id : dependency-build
94
95
if : env.CABAL_COUNT > 0
95
96
shell : bash
97
+ continue-on-error : true
96
98
run : |
97
99
cabal build --only-dependencies --enable-tests --write-ghc-environment-files=always ${{ env.CABAL_FLAGS }}
98
100
99
101
- name : Build local package
100
- if : env.CABAL_COUNT > 0
102
+ if : env.CABAL_COUNT > 0 && steps.dependency-build.outcome == 'success'
101
103
shell : bash
102
104
run : |
103
105
cabal build --enable-tests --write-ghc-environment-files=always ${{ env.CABAL_FLAGS }}
104
106
cabal test ${{ env.CABAL_FLAGS }}
105
107
106
108
- name : Fetch cabal-plan-bounds
107
- if : env.CABAL_COUNT > 0
109
+ if : env.CABAL_COUNT > 0 && steps.dependency-build.outcome == 'success'
108
110
shell : bash
109
111
run : |
110
112
curl -L https://github.com/nomeata/cabal-plan-bounds/releases/latest/download/cabal-plan-bounds.linux.gz | gunzip > /usr/local/bin/cabal-plan-bounds
111
113
chmod +x /usr/local/bin/cabal-plan-bounds
112
114
113
115
- name : Update .cabal file
114
- if : env.CABAL_COUNT > 0
116
+ if : env.CABAL_COUNT > 0 && steps.dependency-build.outcome == 'success'
115
117
shell : bash
116
118
run : |
117
119
# This line was added just for servant-swagger-ui, and counter-acts the default
@@ -122,7 +124,7 @@ jobs:
122
124
123
125
- name : Create Pull Request
124
126
id : cpr
125
- if : env.CABAL_COUNT > 0
127
+ if : env.CABAL_COUNT > 0 && steps.dependency-build.outcome == 'success'
126
128
uses : peter-evans/create-pull-request@v5
127
129
with :
128
130
branch : " cabal-updates"
0 commit comments