From f428c8678114e1ec7e64bf06da9a2d8f71108b2b Mon Sep 17 00:00:00 2001 From: Izuta Hiroyuki Date: Mon, 15 Mar 2021 22:48:51 +0900 Subject: [PATCH 1/2] Add fetch-depth: 0(unshallow) to example yaml --- .github/workflows/push.yml | 4 +++- README.md | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 9a9d64c..c13672e 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -9,8 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master + with: + fetch-depth: 0 - name: git-pr-release - uses: bakunyo/git-pr-release-action@master + uses: bakunyo/git-pr-release-action@develop env: GIT_PR_RELEASE_BRANCH_STAGING: develop GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index e431518..0fafbd1 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master + with: + fetch-depth: 0 - name: git-pr-release uses: bakunyo/git-pr-release-action@master env: From 3dc6b7fb761fe22ef064df39212d03db5de34c96 Mon Sep 17 00:00:00 2001 From: Izuta Hiroyuki Date: Mon, 15 Mar 2021 22:50:05 +0900 Subject: [PATCH 2/2] Delete unneed set-url --- entrypoint.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index e33362c..3f8dcd7 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,5 +2,4 @@ set -eu export GIT_PR_RELEASE_TOKEN=$GITHUB_TOKEN -git remote set-url origin https://$GITHUB_TOKEN:x-oauth-basic@github.com/$GITHUB_REPOSITORY.git git-pr-release