From 4fc7df84b951958ab5c6dc0dd1b57b6387e2e676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Fri, 6 Oct 2023 16:39:34 +0200 Subject: [PATCH] fix: ignore errors on changelog generation and include token (#4926) This backports changes made in 5.5 --- .github/workflows/publish-new-version.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-new-version.yaml b/.github/workflows/publish-new-version.yaml index 7cdd93a998..e717987ac7 100644 --- a/.github/workflows/publish-new-version.yaml +++ b/.github/workflows/publish-new-version.yaml @@ -25,6 +25,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ secrets.GH_PUSH_TOKEN }} - name: Set up git-cliff uses: kenji-miyake/setup-git-cliff@v1 - name: setup git config @@ -35,7 +36,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - cache: "yarn" + cache: 'yarn' - if: ${{ endsWith(github.event.inputs.version, '0') }} run: | PREV_COMMIT=$(git rev-list --tags --max-count=1) @@ -43,6 +44,7 @@ jobs: - if: ${{ !endsWith(github.event.inputs.version, '0') }} run: echo PREV=$(git describe --abbrev=0) >> $GITHUB_ENV - name: Generate changelog if not pre-release + continue-on-error: true if: ${{ !contains(github.event.inputs.version, '-') }} env: PREV: ${{ env.PREV }}