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:
parent
c3e8d743bc
commit
4fc7df84b9
4
.github/workflows/publish-new-version.yaml
vendored
4
.github/workflows/publish-new-version.yaml
vendored
@ -25,6 +25,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
token: ${{ secrets.GH_PUSH_TOKEN }}
|
||||||
- name: Set up git-cliff
|
- name: Set up git-cliff
|
||||||
uses: kenji-miyake/setup-git-cliff@v1
|
uses: kenji-miyake/setup-git-cliff@v1
|
||||||
- name: setup git config
|
- name: setup git config
|
||||||
@ -35,7 +36,7 @@ jobs:
|
|||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: "yarn"
|
cache: 'yarn'
|
||||||
- if: ${{ endsWith(github.event.inputs.version, '0') }}
|
- if: ${{ endsWith(github.event.inputs.version, '0') }}
|
||||||
run: |
|
run: |
|
||||||
PREV_COMMIT=$(git rev-list --tags --max-count=1)
|
PREV_COMMIT=$(git rev-list --tags --max-count=1)
|
||||||
@ -43,6 +44,7 @@ jobs:
|
|||||||
- if: ${{ !endsWith(github.event.inputs.version, '0') }}
|
- if: ${{ !endsWith(github.event.inputs.version, '0') }}
|
||||||
run: echo PREV=$(git describe --abbrev=0) >> $GITHUB_ENV
|
run: echo PREV=$(git describe --abbrev=0) >> $GITHUB_ENV
|
||||||
- name: Generate changelog if not pre-release
|
- name: Generate changelog if not pre-release
|
||||||
|
continue-on-error: true
|
||||||
if: ${{ !contains(github.event.inputs.version, '-') }}
|
if: ${{ !contains(github.event.inputs.version, '-') }}
|
||||||
env:
|
env:
|
||||||
PREV: ${{ env.PREV }}
|
PREV: ${{ env.PREV }}
|
||||||
|
Loading…
Reference in New Issue
Block a user