Skip to content

Commit 57c35e3

Browse files
oulgenpytorchmergebot
authored andcommitted
Fix CI actions running double (#54)
I have noticed that we are running workflows double on ghstack based pull requests, i think it is triggering twice due the hooks, one for push and one for pull request. Hopefully this copy-pasted from pytorch trigger fixes it. Source: https://github.com/pytorch/pytorch/blob/main/.github/workflows/lint.yml Pull Request resolved: #54 Approved by: https://github.com/yf225
1 parent 59c707c commit 57c35e3

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
name: Lint
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
# Include any branch created via ghstack
8-
- gh/**
94
pull_request:
5+
push:
106
branches:
117
- main
12-
- gh/*
8+
- release/*
139

1410
jobs:
1511
lint:

.github/workflows/test.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
name: Run Tests
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
# Include any branch that is created via ghstack
8-
- gh/**
94
pull_request:
5+
push:
106
branches:
117
- main
12-
# Include any branch that is created via ghstack
13-
- gh/**
8+
- release/*
149

1510
concurrency:
1611
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }}

0 commit comments

Comments
 (0)