From 9ca65e189435e544ec18ea43dbe59b10c7da93bb Mon Sep 17 00:00:00 2001 From: hiento09 <136591877+hiento09@users.noreply.github.com> Date: Tue, 12 Dec 2023 09:08:36 +0700 Subject: [PATCH] Fix update release url pipeline run failed (#947) * update-release-url pipeline add trigger commit to git if github event is release * Remove v in release tag * Change job name and add checkout step * Checkout step uses service account token --------- Co-authored-by: Hien To --- .github/workflows/jan-electron-build-nightly.yml | 8 ++++++++ .github/workflows/update-release-url.yml | 3 +++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/jan-electron-build-nightly.yml b/.github/workflows/jan-electron-build-nightly.yml index 366f63602..48f00898c 100644 --- a/.github/workflows/jan-electron-build-nightly.yml +++ b/.github/workflows/jan-electron-build-nightly.yml @@ -181,6 +181,10 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 + with: + fetch-depth: "0" + token: ${{ secrets.PAT_SERVICE_ACCOUNT }} + - name: Notify Discord uses: Ilshidur/action-discord@master with: @@ -207,6 +211,10 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 + with: + fetch-depth: "0" + token: ${{ secrets.PAT_SERVICE_ACCOUNT }} + - name: Notify Discord uses: Ilshidur/action-discord@master with: diff --git a/.github/workflows/update-release-url.yml b/.github/workflows/update-release-url.yml index 8b0be959d..a3ac5d275 100644 --- a/.github/workflows/update-release-url.yml +++ b/.github/workflows/update-release-url.yml @@ -14,6 +14,9 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + with: + fetch-depth: "0" + token: ${{ secrets.PAT_SERVICE_ACCOUNT }} - name: Get Latest Release uses: pozetroninc/github-action-get-latest-release@v0.7.0