We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 809f089 commit a598d99Copy full SHA for a598d99
2 files changed
.github/workflows/on_pull_request_fork.yaml.yml
@@ -0,0 +1,20 @@
1
+on:
2
+ pull_request_target:
3
+ secrets:
4
+ APIFY_TEST_USER_API_TOKEN:
5
+ required: true
6
+
7
+jobs:
8
+ approve_e2e_tests_on_fork:
9
+ if: github.event.pull_request.head.repo.full_name != github.repository
10
+ environment: forks-PR
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Approve E2E tests
14
+ run: echo "Approved"
15
16
+ run_e2e_tests:
17
+ needs: approve_e2e_tests_on_fork
18
+ uses: ./.github/workflows/on_schedule_tests.yaml
19
20
+ APIFY_TEST_USER_API_TOKEN: ${{ secrets.APIFY_TEST_USER_API_TOKEN }}
.github/workflows/on_schedule_tests.yaml
@@ -8,6 +8,9 @@ on:
schedule:
- cron: '0 6 * * *'
+ # Runs when invoked by another workflow.
+ workflow_call:
concurrency:
group: scheduled-tests
cancel-in-progress: false
0 commit comments