Skip to content

fix: fixing the github workflow #4

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 1 commit into from
Jun 5, 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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
repositoryOwner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
version: cat VERSION
product: checker
product: gateway-extension
metadataFileName: ${{ github.workspace }}/build_version.json

- name: Print Build Version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
repositoryOwner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
version: cat VERSION
product: checker
product: gateway-extension
metadataFileName: ${{ github.workspace }}/build_version.json

- name: Print Build Version
Expand Down
37 changes: 29 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ on:
- main

permissions:
contents: write # we need this to be able to push tags
actions: write
contents: write
pull-requests: write

jobs:
release_tag:
Expand Down Expand Up @@ -79,9 +80,11 @@ jobs:
patch=$((patch + 1))

next_version="v$major.$minor.$patch"
nacked_next_version="$major.$minor.$patch"
echo "Next version: $next_version"

echo "next_version=$next_version" >> $GITHUB_ENV
echo "nacked_next_version=$nacked_next_version" >> $GITHUB_ENV

- name: Create Git tag
if: ${{ env.SKIP != 'true' }}
Expand Down Expand Up @@ -147,12 +150,30 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Push dev VERSION
- name: Update to the next version
if: ${{ env.SKIP != 'true' }}
run: |
task release:set-version --verbose -- "${{ env.next_version }}-dev"
git config user.name "${{ env.AUTHOR_NAME }}"
git config user.email "${{ env.AUTHOR_EMAIL }}"
git add VERSION
git commit -m "Update VERSION to ${{ env.next_version }}-dev"
git push origin main
task release:update-repo-version --verbose -- "${{ env.next_version }}-dev"
task release:update-charts-version --verbose -- "${{ env.nacked_next_version }}"
# task release:update-charts-appVersion --verbose -- "${{ env.next_version }}"
# task release:update-charts-values-image-tag --verbose -- "${{ env.next_version }}"

- name: Create pr for next version
if: ${{ env.SKIP != 'true' }}
id: cpr
uses: peter-evans/create-pull-request@v7
with:
token: ${{ steps.generate-token.outputs.token }}
commit-message: "chore: update to ${{ env.next_version }}-dev version"
committer: "GitHub Actions <github-actions[bot]@users.noreply.github.com>"
author: "${{ env.AUTHOR_NAME }} <${{ env.AUTHOR_EMAIL }}>"
signoff: true
base: main
branch: dev/${{ env.next_version }}
delete-branch: true
title: "chore: update to ${{ env.next_version }}-dev version"
body: "This PR was created automatically by GitHub Actions."
labels: |
next-dev-version
automated pr
draft: false
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ formatters:
sections:
- standard
- default
- prefix(github.com/openkcm/checker)
- prefix(github.com/openkcm/gateway-extension)
- blank
- dot
- alias
Expand Down
2 changes: 1 addition & 1 deletion REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ SPDX-PackageComment = "The code in this project may include calls to APIs (\"API
[[annotations]]
path = "**"
precedence = "closest"
SPDX-FileCopyrightText = "2025 SAP SE or an SAP affiliate company and checker contributors"
SPDX-FileCopyrightText = "2025 SAP SE or an SAP affiliate company and gateway-extension contributors"
SPDX-License-Identifier = "Apache-2.0"
Loading