Skip to content

Commit 07f3535

Browse files
committed
Fix litlytics lib github ci prerelease and release run conditions
1 parent 00d9b9c commit 07f3535

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/prerelease-lib.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ on:
1010
- main # Only run the publish workflow for pushes to main
1111

1212
jobs:
13-
publish-lib:
13+
publish-lib-prerelease:
1414
environment: Github CI
1515
# Only proceed if the tests passed and we're not on release
16-
if: ${{ github.event.workflow_run.conclusion == 'success' }} && startsWith(github.head_ref, 'refs/tags/') == false
16+
if: ${{ github.event.workflow_run.conclusion == 'success' }} && ${{ !startsWith(github.ref, 'refs/tags/') }}
1717
runs-on: ubuntu-latest
1818
permissions:
1919
contents: read

.github/workflows/release-lib.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Prerelease litlytics library
1+
name: Release litlytics library
22

33
on:
44
workflow_run:
@@ -13,7 +13,7 @@ jobs:
1313
publish-lib:
1414
environment: Github CI
1515
# Only proceed if the tests passed and we're on release
16-
if: ${{ github.event.workflow_run.conclusion == 'success' }} && startsWith(github.head_ref, 'refs/tags/') == true
16+
if: ${{ github.event.workflow_run.conclusion == 'success' }} && ${{ startsWith(github.ref, 'refs/tags/') }}
1717
runs-on: ubuntu-latest
1818
permissions:
1919
contents: read

0 commit comments

Comments
 (0)