From 43669f730eee93f4c62a9bae1d0666a9513a8046 Mon Sep 17 00:00:00 2001 From: Silthus <755327+Silthus@users.noreply.github.com> Date: Sun, 24 May 2020 21:55:00 +0200 Subject: [PATCH] fix(release): override GitHub API url with GH_URL Workaround for https://github.com/semantic-release/github/issues/268 --- .github/workflows/gradle.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 3e99e15..03acb63 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,5 +1,5 @@ name: Build -on: [push, pull_request] +on: [push] jobs: build: @@ -46,6 +46,7 @@ jobs: release: needs: [build] + if: github.ref == 'refs/heads/master' runs-on: ubuntu-18.04 @@ -60,15 +61,6 @@ jobs: with: node-version: "12.x" - - uses: actions/cache@v1 - name: Cache Node - id: cache-node - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-node- - - name: Cache Gradle id: cache-gradle uses: actions/cache@v1 @@ -87,3 +79,4 @@ jobs: yarn semantic-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_URL: "https://api.github.com/"