feat: add API prefix for prefixes in url

This commit is contained in:
2025-11-25 10:52:21 +01:00
parent d6aeabc0a9
commit 22813bab65
3 changed files with 37 additions and 1 deletions

View File

@@ -75,6 +75,18 @@ jobs:
run: |
git config user.name "Gitea CI"
git config user.email "ci@git.theprivateserver.de"
- name: Determine branch to push to
id: push_branch
run: |
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
# workflow_dispatch runs on a branch ref like refs/heads/main
BRANCH=${GITHUB_REF#refs/heads/}
else
# for a merged PR use the PR base ref (target branch)
BRANCH=${{ github.event.pull_request.base.ref }}
fi
echo "PUSH_BRANCH=$BRANCH" >> $GITHUB_ENV
- name: Bump version
id: bump
run: |
@@ -133,7 +145,7 @@ jobs:
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
branch: ${{ env.PUSH_BRANCH }}
- name: Build Changelog
id: build_changelog
uses: https://github.com/mikepenz/release-changelog-builder-action@v5

View File

@@ -38,6 +38,7 @@ jobs:
with:
name: semapform-image
path: semapform-api.tar
retention-days: 1
smoke-tests:
needs: build-image