Skip to content

Commit 768b558

Browse files
committed
Run build workflows on pull request and tags
but skip the push to the target repos on PR
1 parent 141ba73 commit 768b558

4 files changed

Lines changed: 28 additions & 8 deletions

File tree

.woodpecker/build-cpp-qt.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ variables:
99
from_secret: ci_http_proxy
1010

1111
when:
12-
- event: [ push , manual ]
12+
- event: [ push, manual ]
1313
branch: main
14+
- event: [ pull_request, tag ]
1415

1516
steps:
1617
clone_target_repo:
@@ -57,4 +58,8 @@ steps:
5758
netrc_password:
5859
from_secret: github_token
5960
netrc_username:
60-
from_secret: github_username
61+
from_secret: github_username
62+
when:
63+
- event: [ push , manual ]
64+
branch: main
65+
- event: tag

.woodpecker/build-go.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ variables:
99
from_secret: ci_http_proxy
1010

1111
when:
12-
- event: [ push , manual ]
12+
- event: [ push, manual ]
1313
branch: main
14+
- event: [ pull_request, tag ]
1415

1516
steps:
1617
clone_target_repo:
@@ -57,4 +58,8 @@ steps:
5758
netrc_password:
5859
from_secret: github_token
5960
netrc_username:
60-
from_secret: github_username
61+
from_secret: github_username
62+
when:
63+
- event: [ push , manual ]
64+
branch: main
65+
- event: tag

.woodpecker/build-php.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ variables:
99
from_secret: ci_http_proxy
1010

1111
when:
12-
- event: [ push , manual ]
12+
- event: [ push, manual ]
1313
branch: main
14+
- event: [ pull_request, tag ]
1415

1516
steps:
1617
clone_target_repo:
@@ -57,4 +58,8 @@ steps:
5758
netrc_password:
5859
from_secret: github_token
5960
netrc_username:
60-
from_secret: github_username
61+
from_secret: github_username
62+
when:
63+
- event: [ push , manual ]
64+
branch: main
65+
- event: tag

.woodpecker/build-typescript-axios.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ variables:
99
from_secret: ci_http_proxy
1010

1111
when:
12-
- event: [ push , manual ]
12+
- event: [ push, manual ]
1313
branch: main
14+
- event: [ pull_request, tag ]
1415

1516
steps:
1617
clone_target_repo:
@@ -57,4 +58,8 @@ steps:
5758
netrc_password:
5859
from_secret: github_token
5960
netrc_username:
60-
from_secret: github_username
61+
from_secret: github_username
62+
when:
63+
- event: [ push , manual ]
64+
branch: main
65+
- event: tag

0 commit comments

Comments
 (0)