fix: fix a name into the release metadata file #68
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- main | |
paths-ignore: | |
- 'charts/**' | |
- 'docs/**' | |
- 'LICENSES/**' | |
- '.releases/**' | |
- '.github/**' | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
validate-and-testing: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
submodules: recursive | |
- name: Set up Go | |
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5 | |
with: | |
go-version-file: go.mod | |
- name: Checkout build (taskfiles) repo | |
run: | | |
git clone https://github.com/openkcm/build.git ./hack/common | |
- name: Install Task | |
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 #v2.0.0 | |
with: | |
version: 3.x | |
- name: Set up environment | |
run: | | |
echo "repo_name=$(basename "$GITHUB_REPOSITORY")" >> $GITHUB_ENV | |
echo "version=$(task version)" >> $GITHUB_ENV | |
- name: Generate Build Version | |
uses: hashicorp/actions-generate-metadata@f6f1ca9cededa05d841a58d171064faf3de8ec74 #main | |
with: | |
repositoryOwner: ${{ github.repository_owner }} | |
repository: ${{ github.repository }} | |
version: ${{ env.version }} | |
product: ${{ env.repo_name }} | |
metadataFileName: ${{ github.workspace }}/build_version.json | |
- name: task validate | |
run: task validate --verbose | |
- name: task test | |
run: task test --verbose | |