Skip to content

Commit

Permalink
ci: fix when run is triggered for build branches
Browse files Browse the repository at this point in the history
  • Loading branch information
shanimal08 committed Nov 21, 2024
1 parent 7d18f35 commit f23f3e3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/beta_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
name: Beta Release

on:
pull_request:
types:
- opened
push:
paths-ignore:
- '**/*.md'
branches:
- 'beta'
- 'build-*'
workflow_dispatch:
workflow_dispatch:

concurrency:
# https://docs.github.com/en/actions/examples/using-concurrency-expressions-and-a-test-matrix
Expand Down
21 changes: 20 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: CI runs
name: CI

'on':
workflow_dispatch:
Expand All @@ -18,6 +18,8 @@ concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/v') || github.ref != 'refs/heads/development' || github.ref != 'refs/heads/nextnet' || github.ref != 'refs/heads/stagenet' }}

permissions: {}

jobs:
cargo-checks:
name: cargo checks (fmt, clippy, check)
Expand Down Expand Up @@ -126,3 +128,20 @@ jobs:
cargo install tauri-cli --version "^2" --locked
cargo tauri --version
cargo tauri build --ci --bundles deb
file-licenses:
# disable for now
if: ${{ false }}
name: file-licenses
runs-on: [ubuntu-latest]
steps:
- name: checkout
uses: actions/checkout@v4
- name: install ripgrep
run: |
# https://github.com/BurntSushi/ripgrep/releases/download/14.1.1/ripgrep_14.1.1-1_amd64.deb.sha256
wget -v https://github.com/BurntSushi/ripgrep/releases/download/14.1.1/ripgrep_14.1.1-1_amd64.deb
sudo dpkg -i ripgrep_14.1.1-1_amd64.deb
rg --version || exit 1
- name: run the license check
run: ./scripts/file_license_check.sh

0 comments on commit f23f3e3

Please sign in to comment.