Skip to content

Commit

Permalink
Fix ref_name startsWith (#2428)
Browse files Browse the repository at this point in the history
* Fix ref_name startsWith

* fix
  • Loading branch information
ermalkaleci authored and xlc committed Dec 13, 2022
1 parent 3ca8935 commit 92372b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Runs when `release-*` branch is created or push changes into `release-*` branch.
name: Build Release
on:
create:
push:
branches:
- release-**
Expand All @@ -17,7 +18,7 @@ jobs:
clean-up-actions:
runs-on: ubuntu-latest
# Skip non-release branches
if: startsWith(github.ref, 'release-')
if: startsWith(github.ref_name, 'release-')
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
Expand Down Expand Up @@ -95,7 +96,7 @@ jobs:

trigger:
needs: build-image
if: ${{ contains(github.ref, 'release') }}
if: ${{ startsWith(github.ref_name, 'release-') }}
uses: ./.github/workflows/extrinsic-ordering-check-on-release.yml
secrets: inherit
with:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ name: Publish Release
# - Publish the WASM to Pinata via ipfs

on:
push:
branches:
- release-**
paths-ignore:
- '**/README.md'
create:
workflow_dispatch:
inputs:
# Get name of the chain
Expand Down Expand Up @@ -51,6 +47,8 @@ jobs:
build-release:
name: Build and publish ${{ github.event.inputs.chain || github.ref }}
runs-on: ubuntu-latest
# Skip non-release branches
if: startsWith(github.ref_name, 'release-')
steps:
# Checkout the Acala codebase
- name: Checkout Codebase
Expand Down

0 comments on commit 92372b0

Please sign in to comment.