Skip to content

Commit

Permalink
fixing check branch
Browse files Browse the repository at this point in the history
  • Loading branch information
olegfomenko committed Nov 23, 2023
1 parent 7eb6e36 commit 0451dd9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/packages-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check branch
if: endsWith(github.ref, 'mainnet-beta') == false
if: endsWith(github.event.base_ref, 'mainnet-beta') == false
run: |
echo ${{ github.event.base_ref }}
echo ${{github.ref}}
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ permissions:

jobs:
goreleaser:
if: endsWith(github.ref, 'mainnet')
runs-on: ubuntu-latest
steps:
- name: Check branch
if: endsWith(github.event.base_ref, 'mainnet') == false
run: |
echo ${{ github.event.base_ref }}
echo ${{github.ref}}
exit -1
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 0451dd9

Please sign in to comment.