@@ -35,13 +35,24 @@ jobs:
3535 - name : Checkout PUBLIC repo
3636 uses : actions/checkout@v4
3737
38- - name : Checkout PRIVATE repo
39- uses : actions/checkout@v4
40- with :
41- repository : ${{ inputs.private_repo }}
42- ref : ${{ inputs.private_ref }}
43- token : ${{ secrets.PRIVATE_REPO_TOKEN }}
44- path : private-src
38+ - name : Download CSV from private repo
39+ env :
40+ TOKEN : ${{ secrets.PRIVATE_REPO_TOKEN }}
41+ REPO : ${{ inputs.private_repo }}
42+ REF : ${{ inputs.private_ref }}
43+ FILE : ${{ inputs.csv_path }}
44+ run : |
45+ set -euo pipefail
46+ mkdir -p private-src
47+ # Build the API URL from inputs
48+ API_URL="https://api.github.com/repos/${REPO}/contents/${FILE}?ref=${REF}"
49+ # Download the raw CSV into private-src/decisions.csv
50+ curl -sSfL \
51+ -H "Authorization: Bearer ${TOKEN}" \
52+ -H "Accept: application/vnd.github.raw+json" \
53+ "${API_URL}" \
54+ -o private-src/decisions.csv
55+ echo "Downloaded CSV to private-src/decisions.csv"
4556
4657 - name : Set up Python
4758 uses : actions/setup-python@v5
5263 env :
5364 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5465 REPO_FULL : ${{ github.repository }}
55- CSV_ABS_PATH : ${{ github.workspace }}/private-src/${{ inputs.csv_path }}
66+ CSV_ABS_PATH : ${{ github.workspace }}/private-src/decisions.csv
5667 DRY_RUN : ${{ inputs.dry_run }}
5768 run : |
5869 python - <<'PY'
@@ -113,7 +124,7 @@ jobs:
113124
114125 ACCEPT_MSG = (
115126 "Hello {name},\n\n"
116- "Congratulations! 🎉 We' re excited to inform you that you have been selected as a 2025 PyTorch Ambassador. "
127+ "Congratulations! 🎉 We’ re excited to inform you that you have been selected as a 2025 PyTorch Ambassador. "
117128 "Your contributions, impact, and commitment to the PyTorch community stood out during the review process.\n\n"
118129 "You should also have received an invitation to join our private program management repository, "
119130 "where onboarding details and next steps will be shared. If you do not see the invite, please comment here and we will assist you.\n\n"
@@ -182,4 +193,3 @@ jobs:
182193 print(f"CSV not found at: {csv_path}", file=sys.stderr)
183194 sys.exit(1)
184195 PY
185-
0 commit comments