1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: ignore errors on changelog generation and include token (#4926)

This backports changes made in 5.5
This commit is contained in:
Gastón Fournier 2023-10-06 16:39:34 +02:00 committed by GitHub
parent c3e8d743bc
commit 4fc7df84b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }}