Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/on_pull_request_fork.yaml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on:
pull_request_target:

jobs:
approve_e2e_tests_on_fork:
if: github.event.pull_request.head.repo.full_name != github.repository
environment: forks-PR
runs-on: ubuntu-latest
steps:
- name: Approve E2E tests
run: echo "Approved"

run_e2e_tests:
needs: approve_e2e_tests_on_fork
uses: ./.github/workflows/on_schedule_tests.yaml
secrets:
APIFY_TEST_USER_API_TOKEN: ${{ secrets.APIFY_TEST_USER_API_TOKEN }}
6 changes: 6 additions & 0 deletions .github/workflows/on_schedule_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
schedule:
- cron: '0 6 * * *'

# Runs when invoked by another workflow.
workflow_call:
secrets:
APIFY_TEST_USER_API_TOKEN:
required: true

concurrency:
group: scheduled-tests
cancel-in-progress: false
Expand Down
Loading