Skip to content

Commit 71e4fc4

Browse files
committed
gh login auth
1 parent efe0c18 commit 71e4fc4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/update-core-deps.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
schedule:
55
# https://crontab.guru/#5_8_*_*_*
66
- cron: "5 8 * * *"
7+
pull_request: null
78

89
# Conditional runs
910
# https://stackoverflow.com/a/61832535/2460034
@@ -27,7 +28,13 @@ jobs:
2728
run: git diff --quiet HEAD baselines
2829
continue-on-error: true
2930
# TODO: Remove the following command after the fork is created
30-
- run: gh repo fork --remote false
31+
- env:
32+
TS_TOKEN: ${{ secrets.TS_GITHUB_BOT_AUTH }}
33+
run: |
34+
echo $TS_TOKEN > ts_token
35+
gh auth login --with-token < ts_token
36+
gh repo fork --remote false
37+
rm ts_token
3138
continue-on-error: true
3239
- uses: peter-evans/create-pull-request@v3
3340
if: ${{ steps.git-diff.outcome == 'failure' }}

0 commit comments

Comments
 (0)