Skip to content

Commit

Permalink
ci(shared-data): only publish on version tags
Browse files Browse the repository at this point in the history
Fix bug that was causing ci to attempt the publish step of every pr build
  • Loading branch information
b-cooper committed Dec 6, 2023
1 parent 42194c6 commit 8cbe999
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/shared-data-test-lint-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ jobs:
- id: publish-switch
run: |
echo "Determining whether to publish artifacts for event ${{github.event_type}} and ref ${{github.ref}}"
if [ "${{ format('{0}', startsWith(github.ref, 'refs/tags/shared-data')) }}" ] ; then
if [ "${{ format('{0}', startsWith(github.ref, 'refs/tags/shared-data')) }}" = "true"] ; then
echo "Publishing builds for shared-data@ tags"
echo 'should_publish=true' >> $GITHUB_OUTPUT
elif [ "${{ format('{0}', startsWith(github.ref, 'refs/tags/components')) }}" ] ; then
elif [ "${{ format('{0}', startsWith(github.ref, 'refs/tags/components')) }}" = "true"] ; then
echo "Publishing builds for components@ tags"
echo 'should_publish=true' >> $GITHUB_OUTPUT
else
Expand Down

0 comments on commit 8cbe999

Please sign in to comment.