Skip to content

Commit a986a79

Browse files
committed
allow secrets in PRs from forks
1 parent d3042e4 commit a986a79

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.github/workflows/pre-testing.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Pre-testing checks
2+
3+
on:
4+
push:
5+
branches: [ develop ]
6+
pull_request:
7+
branches: [ develop ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
run: echo "Success"

.github/workflows/testing.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@
33
# All rights reserved.
44

55
name: Тестирование
6-
# Любой пуш и pr в проекте
7-
on: [push, pull_request]
6+
on:
7+
workflow_run:
8+
workflows: ["Pre-testing checks"]
9+
types:
10+
- completed
11+
12+
permissions:
13+
checks: write
14+
contents: read
815

916
jobs:
1017
test:

0 commit comments

Comments
 (0)