Skip to content

Adjust script for setting version #144

Adjust script for setting version

Adjust script for setting version #144

Workflow file for this run

name: Release
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Build changelog from PRs with labels
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v4
with:
configuration: ".github/changelog-configuration.json"
# PreReleases still get a changelog, but the next full release gets a diff since the last full release,
# combining possible changelogs of all previous PreReleases in between.
# PreReleases show a partial changelog since last PreRelease.
ignorePreReleases: "${{ !contains(github.ref, '-rc') }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
uses: ncipollo/release-action@v1
with:
body: ${{steps.build_changelog.outputs.changelog}}
prerelease: "${{ contains(github.ref, '-rc') }}"
# Ensure target branch for release is "master"
commit: master
token: ${{ secrets.GITHUB_TOKEN }}
update-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Change version in package
run: |

Check failure on line 38 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yaml (Line: 38, Col: 14): Unexpected symbol: 'GITHUB_REF#refs/*/'. Located at position 1 within expression: GITHUB_REF#refs/*/ .github/workflows/release.yaml (Line: 43, Col: 20): Unexpected symbol: 'GITHUB_REF#refs/*/'. Located at position 1 within expression: GITHUB_REF#refs/*/
yq -i '.parameters."pkg.appcat".componentVersion = "${{ GITHUB_REF#refs/*/}} "' package/main.yaml
- uses: EndBug/add-and-commit@v7
with:
default_author: user_info
message: "Update component version in package to ${{ GITHUB_REF#refs/*/ }}"