Prevent upload to swift if its from a fork (#60)
Reviewed-on: #60 Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com> Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de> Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
This commit is contained in:
@ -12,6 +12,9 @@ jobs:
|
|||||||
tox-env: docs
|
tox-env: docs
|
||||||
|
|
||||||
- name: Upload documentation preview
|
- name: Upload documentation preview
|
||||||
|
{% raw -%}
|
||||||
|
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
|
{%- endraw %}
|
||||||
uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
|
uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
|
||||||
{%- elif environment == 'public' %}
|
{%- elif environment == 'public' %}
|
||||||
- uses: opentelekomcloud-infra/github-actions/.github/actions/tox-run-env@v1
|
- uses: opentelekomcloud-infra/github-actions/.github/actions/tox-run-env@v1
|
||||||
@ -19,6 +22,9 @@ jobs:
|
|||||||
tox-env: docs
|
tox-env: docs
|
||||||
|
|
||||||
- name: Upload documentation preview
|
- name: Upload documentation preview
|
||||||
|
{% raw -%}
|
||||||
|
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
|
{%- endraw %}
|
||||||
uses: opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
|
uses: opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
with:
|
with:
|
||||||
|
@ -12,6 +12,9 @@ jobs:
|
|||||||
tox-env: pdf-docs
|
tox-env: pdf-docs
|
||||||
|
|
||||||
- name: Upload documentation preview
|
- name: Upload documentation preview
|
||||||
|
{% raw -%}
|
||||||
|
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
|
{%- endraw %}
|
||||||
uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
|
uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
|
||||||
{%- elif environment == 'public' %}
|
{%- elif environment == 'public' %}
|
||||||
- uses: opentelekomcloud-infra/github-actions/.github/actions/tox-run-env@v1
|
- uses: opentelekomcloud-infra/github-actions/.github/actions/tox-run-env@v1
|
||||||
@ -19,6 +22,9 @@ jobs:
|
|||||||
tox-env: pdf-docs
|
tox-env: pdf-docs
|
||||||
|
|
||||||
- name: Upload documentation preview
|
- name: Upload documentation preview
|
||||||
|
{% raw -%}
|
||||||
|
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
|
{%- endraw %}
|
||||||
uses: opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
|
uses: opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
with:
|
with:
|
||||||
|
Reference in New Issue
Block a user