Skip to content

Commit

Permalink
Fix litlytics lib github ci prerelease and release run conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
yamalight committed Oct 14, 2024
1 parent 00d9b9c commit 07f3535
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/prerelease-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ on:
- main # Only run the publish workflow for pushes to main

jobs:
publish-lib:
publish-lib-prerelease:
environment: Github CI
# Only proceed if the tests passed and we're not on release
if: ${{ github.event.workflow_run.conclusion == 'success' }} && startsWith(github.head_ref, 'refs/tags/') == false
if: ${{ github.event.workflow_run.conclusion == 'success' }} && ${{ !startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-lib.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Prerelease litlytics library
name: Release litlytics library

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

0 comments on commit 07f3535

Please sign in to comment.