Skip to content
Snippets Groups Projects
Commit ad00c705 authored by Javier Neira's avatar Javier Neira
Browse files

Reverse condition to upload candidates

As github.event.inputs.upload-candidates has no value when
the workflow is triggered via a -hackage branch
parent ce41b645
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ on: ...@@ -11,7 +11,7 @@ on:
upload-candidates: upload-candidates:
description: 'Whether packages should be uploaded' description: 'Whether packages should be uploaded'
required: true required: true
default: 'true' default: 'false'
push: push:
branches: branches:
- '*-hackage' - '*-hackage'
...@@ -20,7 +20,7 @@ jobs: ...@@ -20,7 +20,7 @@ jobs:
check-and-upload-tarballs: check-and-upload-tarballs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: ${{ github.event.inputs.upload-candidates == 'true' }} fail-fast: ${{ github.event.inputs.upload-candidates != 'false' }}
matrix: matrix:
package: ["hie-compat", "hls-graph", "shake-bench", package: ["hie-compat", "hls-graph", "shake-bench",
"hls-plugin-api", "ghcide", "hls-test-utils", "hls-plugin-api", "ghcide", "hls-test-utils",
...@@ -139,7 +139,7 @@ jobs: ...@@ -139,7 +139,7 @@ jobs:
path: ${{ steps.generate-dist-tarball.outputs.path }} path: ${{ steps.generate-dist-tarball.outputs.path }}
upload-candidate: upload-candidate:
if: github.event.inputs.upload-candidates == 'true' if: github.event.inputs.upload-candidates != 'false'
needs: check-and-upload-tarballs needs: check-and-upload-tarballs
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment