8000 [CI] Fix unstable release conditions by rokatyy · Pull Request #3534 · nuclio/nuclio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[CI] Fix unstable release conditions #3534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ on:
jobs:
prepare-inputs:
name: Prepare inputs
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
outputs:
prev_version: ${{ steps.resolve.outputs.prev_version }}
Expand All @@ -91,21 +90,24 @@ jobs:
fetch-depth: 0

- name: Set up Go
if: github.event_name == 'workflow_dispatch'
uses: actions/setup-go@v5
with:
cache: true
go-version-file: go.mod

- name: Get release info
if: github.event_name == 'workflow_dispatch'
run: |
make get-release-info
env:
BUMP_VERSION_MODE: ${{ inputs.bump_version_mode }}
TARGET_VERSION: ${{ inputs.target_version }}
HELM_TARGET_VERSION: ${{ inputs.helm_chart_target_version }}

- name: Resolve inputs
- name: Resolve inputs for release
id: resolve
if: github.event_name == 'workflow_dispatch'
run: |
CURRENT_VERSION_INPUT=$(make get-current-version)
TARGET_VERSION_INPUT=$(make get-target-version)
Expand All @@ -118,6 +120,14 @@ jobs:
echo "prev_version=${CURRENT_VERSION_INPUT}" >> $GITHUB_OUTPUT
echo "version=${TARGET_VERSION_INPUT}" >> $GITHUB_OUTPUT
echo "helm_version=${HELM_VERSION_INPUT}" >> $GITHUB_OUTPUT

- name: Set version to unstable
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

newline above step

if: github.event_name != 'workflow_dispatch'
run: |
echo "prev_version=" >> $GITHUB_OUTPUT
echo "helm_version=" >> $GITHUB_OUTPUT
echo "version=unstable" >> $GITHUB_OUTPUT


release:
name: Generate Changelog & Create Release
Expand Down Expand Up @@ -238,12 +248,7 @@ jobs:
echo "NUCLIO_CACHE_REPO=${{ env.CACHE_REPO }}/${{ env.CACHE_REPO_NAME }}" >> $GITHUB_ENV
echo "NUCLIO_ARCH=${{ matrix.arch }}" >> $GITHUB_ENV

- name: Set NUCLIO_LABEL to unstable
if: github.event_name == 'push'
run: echo "NUCLIO_LABEL=unstable" >> $GITHUB_ENV

- name: Set NUCLIO_LABEL to release tag
if: github.event_name == 'workflow_dispatch'
run: echo "NUCLIO_LABEL=${{ needs.prepare-inputs.outputs.version }}" >> $GITHUB_ENV

- uses: actions/checkout@v4
Expand Down Expand Up @@ -322,12 +327,7 @@ jobs:
run: |
echo "NUCLIO_ARCH=${{ matrix.arch }}" >> $GITHUB_ENV

- name: Set NUCLIO_LABEL to unstable
if: github.event_name == 'push'
run: echo "NUCLIO_LABEL=unstable" >> $GITHUB_ENV

- name: Set NUCLIO_LABEL to release tag
if: github.event_name == 'workflow_dispatch'
run: echo "NUCLIO_LABEL=${{ needs.prepare-inputs.outputs.version }}" >> $GITHUB_ENV

- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ footer = """
trim = true
# postprocessors
postprocessors = [
# { pattern = '<REPO>', replace = "https://github.com/rokatyy/nuclio" }, # replace repository URL
# { pattern = '<REPO>', replace = "https://github.com/nuclio/nuclio" },
]
# render body even when there are no releases to process
# render_always = true
Expand Down
Loading
0