Skip to content

Commit fc74568

Browse files
authored
Merge pull request #37 from fairagro/feature/github_workflows
fixed pull request label
2 parents fb931a5 + b7ea7c0 commit fc74568

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/docker-release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ jobs:
416416
env:
417417
NEW_VERSION: ${{ needs.docker-build-test.outputs.version }}
418418
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
419+
VERSION_BUMP: ${{ github.event.inputs.version_bump || 'patch' }}
419420
run: |
420421
# Check if there are changes to commit
421422
if git diff --quiet pyproject.toml; then
@@ -434,7 +435,7 @@ jobs:
434435
# Push the branch
435436
git push origin "$BRANCH_NAME"
436437
437-
# Create a pull request
438+
# Create a pull request with version-specific label
438439
gh pr create \
439440
--title "chore: bump version to $NEW_VERSION" \
440441
--body "Automated version update after release $NEW_VERSION
@@ -443,12 +444,12 @@ jobs:
443444
444445
**Auto-generated after**: Docker Release v$NEW_VERSION
445446
**Release Tag**: ${{ env.RELEASE_TAG }}
447+
**Version bump type**: $VERSION_BUMP
446448
447449
> This PR was automatically created by the Docker Release workflow." \
448450
--base main \
449451
--head "$BRANCH_NAME" \
450-
--label "automated" \
451-
--label "version-bump"
452+
--label "$VERSION_BUMP version"
452453
453454
echo "✅ Pull request created for version update to $NEW_VERSION"
454455

0 commit comments

Comments
 (0)