We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 809f089 commit 3b9c223Copy full SHA for 3b9c223
.github/workflows/on_pull_request_fork.yaml.yml
@@ -0,0 +1,17 @@
1
+on:
2
+ pull_request_target:
3
+
4
+jobs:
5
+ approve_e2e_tests_on_fork:
6
+ if: github.event.pull_request.head.repo.full_name != github.repository
7
+ environment: forks-PR
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - name: Approve E2E tests
11
+ run: echo "Approved"
12
13
+ run_e2e_tests:
14
+ needs: approve_e2e_tests_on_fork
15
+ uses: ./.github/workflows/on_schedule_tests.yaml
16
+ secrets:
17
+ 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