Skip to content

Commit

Permalink
Fixing release logic
Browse files Browse the repository at this point in the history
github.ref string always starts with `refs/tags`
  • Loading branch information
thirtytwobits committed Jan 24, 2024
1 parent 4f6af2d commit 6ffad31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/toolshed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
jobs:

dry_run:
if: ${{ github.event_name == 'pull_request' || ( github.event_name == 'release' && startsWith( github.ref, 'ts') && github.event.release.prerelease ) }}
if: ${{ github.event_name == 'pull_request' || ( github.event_name == 'release' && startsWith( github.ref, 'refs/tags/ts') && github.event.release.prerelease ) }}
runs-on: ubuntu-latest

steps:
Expand All @@ -34,7 +34,7 @@ jobs:
run: cd ${{ env.IMAGE_NAME}} && docker buildx build --platform linux/arm64,linux/amd64 .

release:
if: ${{ github.event_name == 'release' && startsWith( github.ref, 'ts' ) && !github.event.release.prerelease }}
if: ${{ github.event_name == 'release' && startsWith( github.ref, 'refs/tags/ts' ) && !github.event.release.prerelease }}
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 6ffad31

Please sign in to comment.