Skip to content

Commit 2ae48dc

Browse files
committed
Run workflows only on push and pr to main
1 parent ad7130f commit 2ae48dc

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/build_docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Deploy static content to Pages
33

44
on:
55
push:
6+
branches: ["main"]
67
pull_request:
78
branches: ["main"]
89

.github/workflows/pre-commit.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Pre-commit
22

3-
on: [push]
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
48

59

610
jobs:

.github/workflows/reproduce_results.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,14 @@
22
name: Reproduce results
33

44
on:
5-
# Runs on pushes targeting the default branch
65
push:
7-
branches:
8-
- "**"
6+
branches: ["main"]
7+
pull_request:
8+
branches: ["main"]
99

10-
# Allows you to run this workflow manually from the Actions tab
10+
# Allows you to run this workflow manually from the Actions tab
1111
workflow_dispatch:
12-
13-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14-
permissions:
15-
contents: read
16-
pages: write
17-
id-token: write
12+
workflow_call:
1813

1914

2015
jobs:

0 commit comments

Comments
 (0)