Skip to content

Commit

Permalink
build: use tag to check if trigger flow (#27)
Browse files Browse the repository at this point in the history
Co-authored-by: justin <>
  • Loading branch information
JustinlinPerp authored Mar 15, 2022
1 parent 9661100 commit 383a041
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- op-kovan-dev1
jobs:
publish-npm-package:
if: github.base_ref != 'main' && github.event_name != 'pull_request'
if: ${{contains(github.event.release.tag_name, 'multicollateral' )}}
runs-on: ubuntu-latest
outputs:
pkg_version: ${{ steps.set-variables.outputs.pkg_version }}
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
args: "**[@perp/v2-sdk: dev1]** @perp/v2-sdk version: **${{ needs.publish-npm-package.outputs.pkg_version }}** published successfully ✅"

- name: issue failure notificaiton
if: needs.publish-npm-package.result != 'success' && github.base_ref != 'main' && github.event_name != 'pull_request'
if: needs.publish-npm-package.result != 'success' && contains(github.event.release.tag_name, 'multicollateral')
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_RELEASE_WEBHOOK }}
uses: Ilshidur/action-discord@master
Expand Down

0 comments on commit 383a041

Please sign in to comment.