feat: add API prefix for prefixes in url
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user