Skip to content

Commit ad00c70

Browse files
committed
Reverse condition to upload candidates
As github.event.inputs.upload-candidates has no value when the workflow is triggered via a -hackage branch
1 parent ce41b64 commit ad00c70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/hackage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
upload-candidates:
1212
description: 'Whether packages should be uploaded'
1313
required: true
14-
default: 'true'
14+
default: 'false'
1515
push:
1616
branches:
1717
- '*-hackage'
@@ -20,7 +20,7 @@ jobs:
2020
check-and-upload-tarballs:
2121
runs-on: ubuntu-latest
2222
strategy:
23-
fail-fast: ${{ github.event.inputs.upload-candidates == 'true' }}
23+
fail-fast: ${{ github.event.inputs.upload-candidates != 'false' }}
2424
matrix:
2525
package: ["hie-compat", "hls-graph", "shake-bench",
2626
"hls-plugin-api", "ghcide", "hls-test-utils",
@@ -139,7 +139,7 @@ jobs:
139139
path: ${{ steps.generate-dist-tarball.outputs.path }}
140140

141141
upload-candidate:
142-
if: github.event.inputs.upload-candidates == 'true'
142+
if: github.event.inputs.upload-candidates != 'false'
143143
needs: check-and-upload-tarballs
144144
runs-on: ubuntu-latest
145145
steps:

0 commit comments

Comments
 (0)