diff --git a/.github/workflows/release-executables.yml b/.github/workflows/release-executables.yml index 0867ce8efc..2d5fdd29e3 100644 --- a/.github/workflows/release-executables.yml +++ b/.github/workflows/release-executables.yml @@ -13,13 +13,16 @@ on: description: "Timely version" required: true type: string + secrets: + NC_GITHUB_TOKEN: + required: true jobs: build-executables: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.NC_GITHUB_TOKEN }} repository: 'nocodb/nocodb-timely' - name: Cache node modules id: cache-npm @@ -109,7 +112,7 @@ jobs: - name: Upload executables(except mac executables) to release uses: svenstaro/upload-release-action@v2 with: - repo_token: ${{ secrets.GITHUB_TOKEN }} + repo_token: ${{ secrets.NC_GITHUB_TOKEN }} file: dist/** tag: ${{ github.event.inputs.tag || inputs.tag }} overwrite: true @@ -159,7 +162,7 @@ jobs: - name: Upload mac executables to release uses: svenstaro/upload-release-action@v2 with: - repo_token: ${{ secrets.GITHUB_TOKEN }} + repo_token: ${{ secrets.NC_GITHUB_TOKEN }} file: mac-dist/** tag: ${{ github.event.inputs.tag || inputs.tag }} overwrite: true diff --git a/.github/workflows/release-nightly-dev.yml b/.github/workflows/release-nightly-dev.yml index 7f4d7522d1..76322d0135 100644 --- a/.github/workflows/release-nightly-dev.yml +++ b/.github/workflows/release-nightly-dev.yml @@ -54,6 +54,8 @@ jobs: uses: ./.github/workflows/release-executables.yml with: tag: ${{ needs.set-tag.outputs.current_version }}-${{ needs.set-tag.outputs.nightly_build_tag }} + secrets: + NC_GITHUB_TOKEN: "${{ secrets.NC_GITHUB_TOKEN }}" # Build docker image and push to docker hub release-docker: diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index b698f3ccc4..5276ff35f6 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -83,6 +83,8 @@ jobs: uses: ./.github/workflows/release-executables.yml with: tag: ${{ needs.set-tag.outputs.current_version }}-${{ needs.set-tag.outputs.target_tag }} + secrets: + NC_GITHUB_TOKEN: "${{ secrets.NC_GITHUB_TOKEN }}" # leave-comment: # runs-on: 'ubuntu-latest'