Skip to content

Commit ff1e5a8

Browse files
authored
fix: fixing the github workflow (#4)
1 parent ffb4a6c commit ff1e5a8

File tree

5 files changed

+33
-12
lines changed

5 files changed

+33
-12
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
repositoryOwner: ${{ github.repository_owner }}
2525
repository: ${{ github.repository }}
2626
version: cat VERSION
27-
product: checker
27+
product: gateway-extension
2828
metadataFileName: ${{ github.workspace }}/build_version.json
2929

3030
- name: Print Build Version

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
repositoryOwner: ${{ github.repository_owner }}
9292
repository: ${{ github.repository }}
9393
version: cat VERSION
94-
product: checker
94+
product: gateway-extension
9595
metadataFileName: ${{ github.workspace }}/build_version.json
9696

9797
- name: Print Build Version

.github/workflows/release.yaml

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ on:
66
- main
77

88
permissions:
9-
contents: write # we need this to be able to push tags
109
actions: write
10+
contents: write
11+
pull-requests: write
1112

1213
jobs:
1314
release_tag:
@@ -79,9 +80,11 @@ jobs:
7980
patch=$((patch + 1))
8081
8182
next_version="v$major.$minor.$patch"
83+
nacked_next_version="$major.$minor.$patch"
8284
echo "Next version: $next_version"
8385
8486
echo "next_version=$next_version" >> $GITHUB_ENV
87+
echo "nacked_next_version=$nacked_next_version" >> $GITHUB_ENV
8588
8689
- name: Create Git tag
8790
if: ${{ env.SKIP != 'true' }}
@@ -147,12 +150,30 @@ jobs:
147150
env:
148151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
149152

150-
- name: Push dev VERSION
153+
- name: Update to the next version
151154
if: ${{ env.SKIP != 'true' }}
152155
run: |
153-
task release:set-version --verbose -- "${{ env.next_version }}-dev"
154-
git config user.name "${{ env.AUTHOR_NAME }}"
155-
git config user.email "${{ env.AUTHOR_EMAIL }}"
156-
git add VERSION
157-
git commit -m "Update VERSION to ${{ env.next_version }}-dev"
158-
git push origin main
156+
task release:update-repo-version --verbose -- "${{ env.next_version }}-dev"
157+
task release:update-charts-version --verbose -- "${{ env.nacked_next_version }}"
158+
# task release:update-charts-appVersion --verbose -- "${{ env.next_version }}"
159+
# task release:update-charts-values-image-tag --verbose -- "${{ env.next_version }}"
160+
161+
- name: Create pr for next version
162+
if: ${{ env.SKIP != 'true' }}
163+
id: cpr
164+
uses: peter-evans/create-pull-request@v7
165+
with:
166+
token: ${{ steps.generate-token.outputs.token }}
167+
commit-message: "chore: update to ${{ env.next_version }}-dev version"
168+
committer: "GitHub Actions <github-actions[bot]@users.noreply.github.com>"
169+
author: "${{ env.AUTHOR_NAME }} <${{ env.AUTHOR_EMAIL }}>"
170+
signoff: true
171+
base: main
172+
branch: dev/${{ env.next_version }}
173+
delete-branch: true
174+
title: "chore: update to ${{ env.next_version }}-dev version"
175+
body: "This PR was created automatically by GitHub Actions."
176+
labels: |
177+
next-dev-version
178+
automated pr
179+
draft: false

.golangci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ formatters:
8787
sections:
8888
- standard
8989
- default
90-
- prefix(github.com/openkcm/checker)
90+
- prefix(github.com/openkcm/gateway-extension)
9191
- blank
9292
- dot
9393
- alias

REUSE.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ SPDX-PackageComment = "The code in this project may include calls to APIs (\"API
66
[[annotations]]
77
path = "**"
88
precedence = "closest"
9-
SPDX-FileCopyrightText = "2025 SAP SE or an SAP affiliate company and checker contributors"
9+
SPDX-FileCopyrightText = "2025 SAP SE or an SAP affiliate company and gateway-extension contributors"
1010
SPDX-License-Identifier = "Apache-2.0"

0 commit comments

Comments
 (0)