-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.19 KB
/
trigger.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
on:
workflow_dispatch:
schedule:
- cron: '0 0-9,11-23 * * *'
name: Trigger
concurrency: trigger
jobs:
trigger_ci:
name: Trigger CI
runs-on: ubuntu-latest
if: github.repository == 'pypi-data/internal-toolchain'
steps:
- uses: robinraju/[email protected]
with:
repository: "pypi-data/toolchain"
fileName: "pypi-data-toolchain.tar.gz"
extract: true
latest: true
out-file-path: "toolchain/"
- name: Generate token
id: generate_token
uses: pypi-data/github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
run: |
${{ github.workspace }}/toolchain/pypi-data-toolchain list-repositories --sample=250 --progress-less-than=99 > to_run.txt
echo "Triggering the following repositories:"
echo "Length: $(wc -l to_run.txt)"
while read p; do
echo "$p"
${{ github.workspace }}/toolchain/pypi-data-toolchain trigger-ci "$p" --limit=1500
done <to_run.txt