Skip to content

Commit

Permalink
ci: fix multiple things and run only when necessary (#962)
Browse files Browse the repository at this point in the history
Co-authored-by: Rapha Amorim <rapha850@gmail.com>
  • Loading branch information
vedantmgoyal9 and raphamorim authored Feb 14, 2025
1 parent de95861 commit 1c33ccf
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ on:
branches: [main]
paths:
- "docs/**"
- ".github/workflows/release-docs.yml"
- ".github/workflows/docs.yml"
pull_request:
branches: [main]
types: [closed]
paths:
- "docs/**"
- ".github/workflows/release-docs.yml"
- ".github/workflows/docs.yml"

permissions:
contents: write
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/nix-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ on:
pull_request:
paths:
- '**/*.rs'
- '**/Cargo.toml'
- '**/Cargo.lock'
- '.github/workflows/nix-build.yml'
- 'nix/**'
push:
branches:
- main
paths:
- '**/*.rs'
- '**/Cargo.toml'
- '**/Cargo.lock'
- '.github/workflows/nix-build.yml'
- 'nix/**'

jobs:
lints:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ on:
branches: [ main ]
tags:
- 'v*.*.*'
paths:
- '**/*.rs'
- '**/Cargo.toml'
- '**/Cargo.lock'
- '.github/workflows/release.yml'
- '.goreleaser.yaml'
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: Test

on: [push, pull_request]
on:
push:
paths:
- '**/*.rs'
- '**/Cargo.toml'
- '**/Cargo.lock'
- '.github/workflows/test.yml'
pull_request:
paths:
- '**/*.rs'
- '**/Cargo.toml'
- '**/Cargo.lock'
- '.github/workflows/test.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down

0 comments on commit 1c33ccf

Please sign in to comment.