Skip to content

Commit e40ebd0

Browse files
committed
Try removing push requirement
1 parent fe35ae7 commit e40ebd0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ on:
2020
env:
2121
ormolu_version: 0.5.2.0
2222
is_published_build: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging') }}
23-
is_task_build: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/heads/task-') }}
2423
exe_cache_prefix: share-ci-exe
2524
share_local_bin: share-api
2625

@@ -92,7 +91,7 @@ jobs:
9291
path: ${{env.share_local_bin}}
9392

9493
- name: Save exes for share-task-runner docker build
95-
if: env.is_task_build
94+
if: ${{ startsWith(github.ref, 'refs/heads/task-') }}
9695
uses: actions/upload-artifact@v4
9796
with:
9897
name: share-task-runner-exe
@@ -108,7 +107,7 @@ jobs:
108107

109108
# Separate jobs for the docker builds because they requires elevated github token permissions.
110109
share-task-runner-docker-build:
111-
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/heads/task-') }}
110+
if: ${{ startsWith(github.ref, 'refs/heads/task-') }}
112111
env:
113112
container_registry: ghcr.io
114113
docker_image_name: unisoncomputing/share-task-runner

0 commit comments

Comments
 (0)