Merge pull request #1153 from saschanaz/bot-fork
Try forking first before pushing PR
This commit is contained in:
Коммит
c00446d059
|
@ -26,6 +26,15 @@ jobs:
|
|||
- id: git-diff
|
||||
run: git diff --quiet HEAD baselines
|
||||
continue-on-error: true
|
||||
# TODO: Remove the following command after the fork is created
|
||||
- env:
|
||||
TS_TOKEN: ${{ secrets.TS_GITHUB_BOT_AUTH }}
|
||||
run: |
|
||||
echo $TS_TOKEN > ts_token
|
||||
gh auth login --with-token < ts_token
|
||||
gh repo fork --remote false
|
||||
rm ts_token
|
||||
continue-on-error: true
|
||||
- uses: peter-evans/create-pull-request@v3
|
||||
if: ${{ steps.git-diff.outcome == 'failure' }}
|
||||
with:
|
||||
|
|
Загрузка…
Ссылка в новой задаче