Don't try to upload if running in a forked repo
@@ -39,6 +39,7 @@ jobs:
run: ./refine dist ${{ env.OR_VERSION }}
- name: Create Release
+ if: github.repository == 'OpenRefine/OpenRefine'
id: create_release
run: echo ::set-env name=API_RELEASE::$(./.github/workflows/release_manager.sh)
env:
@@ -48,6 +49,7 @@ jobs:
- name: Upload Release Asset Windows
id: upload-release-asset-win
+ if: github.repository == 'OpenRefine/OpenRefine'
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_REPO_TOKEN }}
@@ -59,6 +61,7 @@ jobs:
- name: Upload Release Asset Linux
id: upload-release-asset-linux
+ if: github.repository == 'OpenRefine/OpenRefine'
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_REPO_TOKEN }}
@@ -70,6 +73,7 @@ jobs:
- name: Upload Release Asset Mac
id: upload-release-asset-mac
+ if: github.repository == 'OpenRefine/OpenRefine'
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_REPO_TOKEN }}
