Skip to content

Commit 5af4103

Browse files
committed
chore: Nightly pulls token from GH_PYTORCHBOT
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent c266a8d commit 5af4103

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/nightlies.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@ on:
88
jobs:
99
cut_nightly:
1010
runs-on: ubuntu-latest
11+
environment: trigger-nightly
1112
timeout-minutes: 60
1213
steps:
13-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1415
with:
1516
ref: main
16-
persist-credentials: false
17+
token: ${{ secrets.GH_PYTORCHBOT_TOKEN }}
1718
- name: Create nightly commit
1819
shell: bash
1920
run: |
20-
git config --global user.email "torch-tensorrt.github.bot@nvidia.com"
21-
git config --global user.name "Torch-TensorRT Github Bot"
21+
git config --global user.email "pytorchbot@pytorch.com"
22+
git config --global user.name "pytorchbot"
2223
git fetch origin nightly
2324
HEAD_COMMIT_HASH=$(git rev-parse HEAD)
2425
NIGHTLY_DATE=$(date +"%Y-%m-%d")

0 commit comments

Comments
 (0)