Skip to content

Commit 59a4624

Browse files
committed
only trigger on merge to main
1 parent 06c9779 commit 59a4624

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/uml.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@ name: Update the UML Diagrams
22

33
on:
44
pull_request:
5+
types: [closed]
56
branches: [main]
6-
# paths:
7-
# - "causalpy/**"
8-
push:
9-
branches: [main]
10-
# paths:
11-
# - "causalpy/**"
7+
paths:
8+
- "causalpy/**"
129

1310
jobs:
1411
build:
12+
if: github.event.pull_request.merged == true
1513
runs-on: ubuntu-latest
1614
permissions: write-all
1715
steps:
@@ -21,20 +19,11 @@ jobs:
2119
ref: ${{ github.head_ref || 'main' }}
2220
repository: ${{ github.event.pull_request.head.repo.full_name }}
2321

24-
2522
- name: Set up Python
2623
uses: actions/setup-python@v2
2724
with:
2825
python-version: "3.10"
2926

30-
- name: Echo the git status
31-
run: |
32-
git status
33-
34-
- name: Echo remotes
35-
run: |
36-
git remote -v
37-
3827
- name: Configure Git Identity
3928
run: |
4029
git config user.name "$(git log -n 1 --pretty=format:%an)"

0 commit comments

Comments
 (0)