Skip to content

Commit c00446d

Browse files
author
Orta Therox
authored
Merge pull request #1153 from saschanaz/bot-fork
Try forking first before pushing PR
2 parents 409a010 + 3722dc7 commit c00446d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

+9
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ jobs:
2626
- id: git-diff
2727
run: git diff --quiet HEAD baselines
2828
continue-on-error: true
29+
# TODO: Remove the following command after the fork is created
30+
- env:
31+
TS_TOKEN: ${{ secrets.TS_GITHUB_BOT_AUTH }}
32+
run: |
33+
echo $TS_TOKEN > ts_token
34+
gh auth login --with-token < ts_token
35+
gh repo fork --remote false
36+
rm ts_token
37+
continue-on-error: true
2938
- uses: peter-evans/create-pull-request@v3
3039
if: ${{ steps.git-diff.outcome == 'failure' }}
3140
with:

0 commit comments

Comments
 (0)