Yuki Takei 6 лет назад
Родитель
Сommit
565d641f5e
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      .github/workflows/release.yml

+ 3 - 3
.github/workflows/release.yml

@@ -19,7 +19,6 @@ jobs:
       run: |
       run: |
         git config --local user.name "GitHub Action"
         git config --local user.name "GitHub Action"
         git config --local user.email "info@weseek.co.jp"
         git config --local user.email "info@weseek.co.jp"
-        git remote set-url origin "https://${{ env.GITHUB_ACTOR }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ env.GITHUB_REPOSITORY }}"
 
 
     - name: Bump version
     - name: Bump version
       run: |
       run: |
@@ -35,9 +34,10 @@ jobs:
 
 
     - name: Push tag
     - name: Push tag
       run: |
       run: |
+        ORIGIN="https://${{ env.GITHUB_ACTOR }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ env.GITHUB_REPOSITORY }}"
         TMP_RELEASE_BRANCH=tmp/release-${{ env.RELEASE_VERSION }}
         TMP_RELEASE_BRANCH=tmp/release-${{ env.RELEASE_VERSION }}
-        git push origin HEAD:$TMP_RELEASE_BRANCH --follow-tags
-        git push --delete origin $TMP_RELEASE_BRANCH
+        git push $ORIGIN HEAD:$TMP_RELEASE_BRANCH --follow-tags
+        git push --delete $ORIGIN $TMP_RELEASE_BRANCH
 
 
     - name: Upload release notes
     - name: Upload release notes
       uses: Roang-zero1/github-create-release-action@master
       uses: Roang-zero1/github-create-release-action@master