build: only make comment on sizediff job when run from the main repo
Signed-off-by: deadprogram <ron@hybridgroup.com>
Этот коммит содержится в:
родитель
bcdb3fc681
коммит
ee90bdebff
1 изменённых файлов: 1 добавлений и 1 удалений
2
.github/workflows/sizediff.yml
предоставленный
2
.github/workflows/sizediff.yml
предоставленный
|
@ -12,7 +12,6 @@ jobs:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
issues: write
|
|
||||||
steps:
|
steps:
|
||||||
# Prepare, install tools
|
# Prepare, install tools
|
||||||
- name: Add GOBIN to $PATH
|
- name: Add GOBIN to $PATH
|
||||||
|
@ -89,6 +88,7 @@ jobs:
|
||||||
- name: Comment contents
|
- name: Comment contents
|
||||||
run: cat comment.txt
|
run: cat comment.txt
|
||||||
- name: Add comment
|
- name: Add comment
|
||||||
|
if: github.repository == 'tinygo-org/tinygo'
|
||||||
uses: thollander/actions-comment-pull-request@v2.3.1
|
uses: thollander/actions-comment-pull-request@v2.3.1
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче